This commit is contained in:
parent
16b75c64f9
commit
ce71b2ceec
104 changed files with 87 additions and 437 deletions
100
Cargo.toml
100
Cargo.toml
|
@ -1,73 +1,41 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
".",
|
".",
|
||||||
"members/criterion-demo",
|
"crates/criterion-demo",
|
||||||
"members/cucumber-demo",
|
"crates/cucumber-demo",
|
||||||
"members/panic-calm",
|
"crates/panic-calm",
|
||||||
"members/pest-demo",
|
"crates/pest-demo",
|
||||||
"members/revsqrt",
|
"crates/revsqrt",
|
||||||
"members/serde-json-demo",
|
"crates/serde-json-demo",
|
||||||
"members/shortc",
|
"crates/shortc",
|
||||||
"members/socker",
|
"crates/socker",
|
||||||
"members/tokryon",
|
"crates/tokryon",
|
||||||
"members/tokio-send-sync",
|
"crates/tokio-send-sync",
|
||||||
"members/matchmatchmatch",
|
"crates/matchmatchmatch",
|
||||||
"members/future_stream",
|
"crates/future_stream",
|
||||||
"members/mpsc",
|
"crates/mpsc",
|
||||||
"members/mpsc-full",
|
"crates/mpsc-full",
|
||||||
"members/echargs",
|
"crates/echargs",
|
||||||
"members/claptest",
|
"crates/claptest",
|
||||||
"members/rest",
|
"crates/rest",
|
||||||
"members/rest-queued",
|
"crates/rest-queued",
|
||||||
"members/fluent-demo",
|
"crates/fluent-demo",
|
||||||
"members/onlytoken",
|
"crates/onlytoken",
|
||||||
"members/sqlite-demo",
|
"crates/sqlite-demo",
|
||||||
"members/diesel-demo",
|
"crates/diesel-demo",
|
||||||
"members/ptlog",
|
"crates/ptlog",
|
||||||
"members/hello-world",
|
"crates/hello-world",
|
||||||
"members/statusline",
|
"crates/statusline",
|
||||||
"members/clap-repl-demo",
|
"crates/clap-repl-demo",
|
||||||
"members/arithmetics",
|
"crates/arithmetics",
|
||||||
"members/egui-demo",
|
"crates/egui-demo",
|
||||||
"members/rfd-demo",
|
"crates/rfd-demo",
|
||||||
"members/iter-prod",
|
"crates/iter-prod",
|
||||||
"members/tpdemo",
|
"crates/tpdemo",
|
||||||
"members/graph",
|
"crates/graph",
|
||||||
"members/sdl-idiot",
|
"crates/sdl-idiot",
|
||||||
]
|
|
||||||
default-members = [
|
|
||||||
".",
|
|
||||||
"members/iter-prod",
|
|
||||||
"members/rfd-demo",
|
|
||||||
"members/egui-demo",
|
|
||||||
"members/arithmetics",
|
|
||||||
"members/statusline",
|
|
||||||
"members/ptlog",
|
|
||||||
"members/diesel-demo",
|
|
||||||
"members/onlytoken",
|
|
||||||
"members/fluent-demo",
|
|
||||||
"members/echargs",
|
|
||||||
"members/revsqrt",
|
|
||||||
"members/claptest",
|
|
||||||
"members/mpsc",
|
|
||||||
"members/mpsc-full",
|
|
||||||
"members/criterion-demo",
|
|
||||||
"members/shortc",
|
|
||||||
"members/pest-demo",
|
|
||||||
"members/serde-json-demo",
|
|
||||||
"members/cucumber-demo",
|
|
||||||
"members/panic-calm",
|
|
||||||
"members/socker",
|
|
||||||
"members/tokryon",
|
|
||||||
"members/tokio-send-sync",
|
|
||||||
"members/matchmatchmatch",
|
|
||||||
"members/future_stream",
|
|
||||||
"members/rest",
|
|
||||||
"members/rest-queued",
|
|
||||||
"members/sqlite-demo",
|
|
||||||
"members/graph",
|
|
||||||
"members/sdl-idiot",
|
|
||||||
]
|
]
|
||||||
|
default-members = ["."]
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
anyhow = "1.0.79"
|
anyhow = "1.0.79"
|
||||||
|
|
18
README.md
18
README.md
|
@ -7,6 +7,14 @@ dependencies.
|
||||||
|
|
||||||
Completeness is not a goal of this project.
|
Completeness is not a goal of this project.
|
||||||
|
|
||||||
|
## Compiling
|
||||||
|
|
||||||
|
Please prefer the use of the [cargo.sh](./cargo.sh) script.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ ./cargo.sh CRATE CARGO_COMMANDS...
|
||||||
|
```
|
||||||
|
|
||||||
## Highlighted demo crates
|
## Highlighted demo crates
|
||||||
|
|
||||||
**Basics**
|
**Basics**
|
||||||
|
@ -40,9 +48,17 @@ Completeness is not a goal of this project.
|
||||||
|
|
||||||
## Warnings
|
## Warnings
|
||||||
|
|
||||||
* Some of the crates, especially those related to GUIs, may not work in WSL
|
* Some of the crates, especially those related to GUIs, may not work in WSL
|
||||||
environments.
|
environments.
|
||||||
|
|
||||||
|
## Additional dependencies
|
||||||
|
|
||||||
|
If you need to compile the whole workspace:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
apt install libgtk-3-dev librust-atk-dev -y
|
||||||
|
```
|
||||||
|
|
||||||
## Rust unsafe
|
## Rust unsafe
|
||||||
|
|
||||||
Unsafe rust offers many possibilities otherwise locked from rust, which might
|
Unsafe rust offers many possibilities otherwise locked from rust, which might
|
||||||
|
|
6
cargo.sh
Executable file
6
cargo.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ROOT=$PWD
|
||||||
|
CARGO_TARGET_DIR=$PWD/target
|
||||||
|
|
||||||
|
cargo --config "target-dir=\"$ROOT/target\"" $@
|
8
cargo_crate.sh
Executable file
8
cargo_crate.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CRATE="$1"
|
||||||
|
ROOT=$PWD
|
||||||
|
CARGO_TARGET_DIR=$PWD/target
|
||||||
|
|
||||||
|
echo "using crate $CRATE"
|
||||||
|
cargo --config "target-dir=\"$ROOT/target\"" ${@:2} --manifest-path $ROOT/crates/${CRATE}/Cargo.toml
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue