garden: yaml-rust2 -> saphyr

This commit is contained in:
David Aguilar 2024-04-08 23:37:22 -07:00
parent 5b3fa958b8
commit 976007017d

View file

@ -8,55 +8,33 @@
# garden fix # garden fix
commands: commands:
bench: cargo bench "$@" build: |
build: cargo build "$@" cargo build --all-targets --release
cargo build --all-targets
check>: check>:
- check/clippy - check/clippy
- check/fmt - check/fmt
- build - build
- test - test
- check/profile - doc
check/clippy: cargo clippy --all-targets "$@" -- -D warnings check/clippy: |
cargo clippy --all-targets --release -- -D warnings
cargo clippy --all-targets -- -D warnings
check/fmt: cargo fmt --check check/fmt: cargo fmt --check
check/profile: | doc: cargo doc --all-features
cargo build \ fix: cargo clippy --all-targets --fix -- -D warnings
--profile=release-lto \ fmt: cargo fmt
--package gen_large_yaml \ test: |
--bin gen_large_yaml \ cargo test
--manifest-path tools/gen_large_yaml/Cargo.toml cargo test --release
clean: cargo clean "$@" cargo test --doc
coverage: cargo kcov "$@"
doc: cargo doc --no-deps --package yaml-rust2 "$@"
ethi/bench: |
cargo build --release --all-targets
cd ../Yaml-rust && cargo build --release --all-targets
cd ../libfyaml/build && ninja
cargo bench_compare run_bench
fix: cargo clippy --all-targets --fix "$@" -- -D warnings
fmt: cargo fmt "$@"
test: cargo test "$@"
update: cargo update "$@"
watch: cargo watch --shell "garden check" watch: cargo watch --shell "garden check"
environment:
RUSTDOCFLAGS: "-D warnings"
trees: trees:
yaml-rust2: saphyr:
description: A pure Rust YAML implementation description: A pure Rust YAML implementation
path: ${GARDEN_CONFIG_DIR} path: ${GARDEN_CONFIG_DIR}
url: "git@github.com:Ethiraric/yaml-rust2.git" url: "git@github.com:saphyr-rs/saphyr.git"
remotes:
davvid: "git@github.com:davvid/yaml-rust2.git"
yaml-rust: "git@github.com:chyh1990/yaml-rust.git"
gitconfig:
# Access yaml-rust2 pull requests as yaml-rust2/pull/*
remote.yaml-rust2.url: "git@github.com:Ethiraric/yaml-rust2.git"
remote.yaml-rust2.fetch:
- "+refs/pull/*/head:refs/remotes/yaml-rust2/pull/*"
# Access yaml-rust pull requests as yaml-rust/pull/*
remote.yaml-rust.fetch:
- "+refs/heads/*:refs/remotes/yaml-rust/*"
- "+refs/pull/*/head:refs/remotes/yaml-rust/pull/*"
yaml-test-suite:
description: Comprehensive, language independent Test Suite for YAML
path: tests/yaml-test-suite
url: https://github.com/yaml/yaml-test-suite