only-cliches / NoProto

Flexible, Fast & Compact Serialization with RPC
MIT License
373 stars 14 forks source link

Consider making a no_std feature option #1

Closed richardanaya closed 4 years ago

richardanaya commented 4 years ago

Would be nice to use no_proto in places were trying to be as minimal as possible (like web assembly)

only-cliches commented 4 years ago

Will need to switch to json_flex, looks like the rand crate used for UUIDs and such already supports no_std. The rest is just switching to alloc and core.

I was planning on porting this library to Typescript after the Rust version was done. Might make more sense to just compile it into WASM. The changes above shouldn't be too difficult.

richardanaya commented 4 years ago

Exciting! use Vec from the alloc crate, it’s extremely minimal. no_std and alloc make really minimal wasm.

On Tue, Mar 17, 2020 at 2:20 PM Scott Lott notifications@github.com wrote:

Will need to switch to rjson https://crates.io/crates/rjson, looks like the rand crate used for UUIDs and such already supports no_std. Also it looks like Vec isn't really usable even with core https://doc.rust-lang.org/core/index.html, so we'd have to switch to [u8].

I was planning on porting this library to Typescript after the Rust version was done. Might make more sense to just compile it into WASM. The changes above shouldn't be too difficult.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ClickSimply/NoProto/issues/1#issuecomment-600307121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACHZGWSCENBZZ3SI6MGXS3RH7SSRANCNFSM4LNYQTOQ .