Closed darleybarreto closed 4 years ago
You need to enable the "alloc" feature when specifying the dependency in Cargo.toml.
I see, so I need to use a crate to perform allocation for me, right? Or can I somehow import the one from std?
Use this line in Cargo.toml
:
cstr_core = { version = "0.2.0", features = ["alloc"] }
Thank you!
I am new to rust and I might be doing something wrong, but the following code
gives this error (which is weird because I can import the other two)