https://github.com/littledivy/plonk
Recompile Rust faster. Good for your flow state.
https://github.com/littledivy/plonk
build cargo developer-tools rust
Last synced: about 1 year ago
JSON representation
Recompile Rust faster. Good for your flow state.
- Host: GitHub
- URL: https://github.com/littledivy/plonk
- Owner: littledivy
- License: other
- Created: 2023-12-03T14:33:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-06T09:48:46.000Z (over 2 years ago)
- Last Synced: 2025-02-25T08:06:19.004Z (over 1 year ago)
- Topics: build, cargo, developer-tools, rust
- Language: Rust
- Homepage: https://crates.io/crates/cargo-plonk
- Size: 129 KB
- Stars: 46
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# plonk
Plonk is a development-time build tool for Rust projects.
```shell
cargo install cargo-plonk
```

```shell
# 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
```
## faq
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: ***.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`