An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# plonk

Plonk is a development-time build tool for Rust projects.

```shell
cargo install cargo-plonk
```

![plonk_demo](https://github.com/littledivy/plonk/assets/34997667/bdc1e3c5-6740-42e7-b7b5-32c22cd45311)

```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`