Crates.io | cargo-plonk |
lib.rs | cargo-plonk |
version | 0.1.0 |
source | src |
created_at | 2023-12-06 09:48:04.71222 |
updated_at | 2023-12-06 09:48:04.71222 |
description | Recompile Rust faster. Good for your flow state. |
homepage | |
repository | |
max_upload_size | |
id | 1059811 |
size | 70,313 |
Plonk is a development-time build tool for Rust projects.
cargo install cargo-plonk
# fn main() {
# lib::say_hello();
# }
$ cargo build -p example_cli
# pub fn say_hello() {
# println!("Hello x1");
# }
$ cargo plonk \
run \
--package example_lib \
--symbol say_hello
Hello x1
$ echo "pub fn say_hello() {\n println!('Hello x2');\n}" > example_lib/lib.rs
$ cargo plonk \
run \
--package example_lib \
--symbol say_hello
Hello x2
I am getting a "Library not loaded: @rpath/libstd" error:
[*] Could not open library ***.dylib
[*] Error: dlopen(***.dylib, 0x0001): Library not loaded: @rpath/libstd-5563368f93f04a18.dylib
Referenced from: <F601902F-B608-3EB8-A3A7-BC9069E46C28> ***.dylib
Reason: tried: '/usr/local/lib/libstd-5563368f93f04a18.dylib' (no such file), '/usr/lib/libstd-5563368f93f04a18.dylib' (no such file, not in dyld cache)
You need to update your $DYLD_LIBRARY_PATH
to include the rustc sysroot libraries: $(rustc --print sysroot)/lib