Benedikt Peetz
0a60c894d2
This makes it possible to automatically free the string in the correct way expected by both c and rust. Rust strings can now just be freed by the rust allocator, whilst c strings are forgotten, so that the c allocator may free them. BREAKING CHANGE: All usage of explicit mentions `std::string::String` in your `handle_cmd` function will need to be replaced by `trixy::types::newtypes::String`. Otherwise these types should provide the same methods. |
||
---|---|---|
.. | ||
.cargo | ||
c | ||
src/bin | ||
.gitignore | ||
Cargo.toml | ||
Makefile | ||
README.md | ||
build.rs | ||
valgrind_test.sh |
README.md
Reason
This is not a cargo example, as its needs a full build.rs step.