cargo: merge Cargo.toml files into a cargo workspaces
This commit is contained in:
parent
3978720dc9
commit
4e781f56c9
5 changed files with 79 additions and 52 deletions
40
Cargo.toml
Normal file
40
Cargo.toml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
||||||
|
|
||||||
|
[workspace]
|
||||||
|
members = [
|
||||||
|
"parser",
|
||||||
|
"saphyr",
|
||||||
|
"bench",
|
||||||
|
]
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
|
authors = [
|
||||||
|
"Ethiraric <ethiraric@gmail.com>",
|
||||||
|
"David Aguilar <davvid@gmail.com>",
|
||||||
|
"Yuheng Chen <yuhengchen@sensetime.com>"
|
||||||
|
]
|
||||||
|
version = "0.0.2"
|
||||||
|
documentation = "https://docs.rs/saphyr"
|
||||||
|
keywords = [ "yaml", "parser" ]
|
||||||
|
categories = [ "encoding", "parser-implementations" ]
|
||||||
|
license = "MIT OR Apache-2.0"
|
||||||
|
description = "A fully YAML 1.2 compliant YAML library"
|
||||||
|
repository = "https://github.com/saphyr-rs/saphyr"
|
||||||
|
readme = "README.md"
|
||||||
|
edition = "2021"
|
||||||
|
rust-version = "1.70.0"
|
||||||
|
|
||||||
|
[workspace.dependencies]
|
||||||
|
arraydeque = "0.5.1"
|
||||||
|
encoding_rs = { version = "0.8.33" }
|
||||||
|
hashlink = "0.8"
|
||||||
|
libtest-mimic = "0.3.0"
|
||||||
|
quickcheck = "1.0"
|
||||||
|
saphyr = { path = "saphyr" }
|
||||||
|
saphyr-bench = { path = "bench" }
|
||||||
|
saphyr-parser = { path = "parser" }
|
||||||
|
|
||||||
|
[workspace.lints.rust]
|
||||||
|
unsafe_op_in_unsafe_fn = "deny"
|
|
@ -1,14 +1,14 @@
|
||||||
[package]
|
[package]
|
||||||
name = "saphyr-bench"
|
name = "saphyr-bench"
|
||||||
version = "0.0.1"
|
|
||||||
authors = [ "Ethiraric <ethiraric@gmail.com>" ]
|
authors = [ "Ethiraric <ethiraric@gmail.com>" ]
|
||||||
license = "MIT"
|
|
||||||
description = "Utilities to benchmark saphyr"
|
description = "Utilities to benchmark saphyr"
|
||||||
|
license = "MIT"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
edition = "2021"
|
edition = { workspace = true }
|
||||||
|
version = { workspace = true }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
saphyr-parser = "0.0.1"
|
saphyr-parser = { workspace = true }
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "time_parse"
|
name = "time_parse"
|
||||||
|
|
|
@ -1,36 +1,28 @@
|
||||||
[package]
|
[package]
|
||||||
name = "saphyr-parser"
|
name = "saphyr-parser"
|
||||||
version = "0.0.2"
|
|
||||||
authors = [
|
|
||||||
"Yuheng Chen <yuhengchen@sensetime.com>",
|
|
||||||
"Ethiraric <ethiraric@gmail.com>",
|
|
||||||
"David Aguilar <davvid@gmail.com>"
|
|
||||||
]
|
|
||||||
documentation = "https://docs.rs/saphyr-parser"
|
|
||||||
keywords = [ "yaml", "parser", "deserialization" ]
|
|
||||||
categories = [ "encoding", "parser-implementations", "parsing" ]
|
|
||||||
license = "MIT OR Apache-2.0"
|
|
||||||
description = "A fully YAML 1.2 compliant YAML parser"
|
|
||||||
repository = "https://github.com/saphyr-rs/saphyr-parser"
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
edition = "2021"
|
authors = { workspace = true }
|
||||||
rust-version = "1.70.0"
|
categories = { workspace = true }
|
||||||
|
description = { workspace = true }
|
||||||
|
documentation = { workspace = true }
|
||||||
|
edition = { workspace = true }
|
||||||
|
keywords = { workspace = true }
|
||||||
|
license = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
|
rust-version = { workspace = true }
|
||||||
|
version = { workspace = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
debug_prints = []
|
debug_prints = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
arraydeque = "0.5.1"
|
arraydeque = { workspace = true }
|
||||||
hashlink = "0.8"
|
hashlink = { workspace = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
libtest-mimic = "0.3.0"
|
libtest-mimic = { workspace = true }
|
||||||
quickcheck = "1.0"
|
quickcheck = { workspace = true }
|
||||||
saphyr = "0.0.1"
|
saphyr = { workspace = true }
|
||||||
|
|
||||||
[profile.release-lto]
|
|
||||||
inherits = "release"
|
|
||||||
lto = true
|
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
name = "yaml-test-suite"
|
name = "yaml-test-suite"
|
||||||
|
@ -41,9 +33,9 @@ name = "dump_events"
|
||||||
path = "tools/dump_events.rs"
|
path = "tools/dump_events.rs"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "time_parse"
|
name = "time_parser_parse"
|
||||||
path = "tools/time_parse.rs"
|
path = "tools/time_parse.rs"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "run_bench"
|
name = "run_parser_bench"
|
||||||
path = "tools/run_bench.rs"
|
path = "tools/run_bench.rs"
|
||||||
|
|
|
@ -1,34 +1,29 @@
|
||||||
[package]
|
[package]
|
||||||
name = "saphyr"
|
name = "saphyr"
|
||||||
version = "0.0.1"
|
authors = { workspace = true }
|
||||||
authors = [
|
categories = { workspace = true }
|
||||||
"Yuheng Chen <yuhengchen@sensetime.com>",
|
description = { workspace = true }
|
||||||
"Ethiraric <ethiraric@gmail.com>",
|
documentation = { workspace = true }
|
||||||
"David Aguilar <davvid@gmail.com>"
|
edition = { workspace = true }
|
||||||
]
|
keywords = { workspace = true }
|
||||||
documentation = "https://docs.rs/saphyr"
|
license = { workspace = true }
|
||||||
keywords = [ "yaml", "parser" ]
|
version = { workspace = true }
|
||||||
categories = [ "encoding", "parser-implementations" ]
|
readme = { workspace = true }
|
||||||
license = "MIT OR Apache-2.0"
|
repository = { workspace = true }
|
||||||
description = "A fully YAML 1.2 compliant YAML library"
|
rust-version = { workspace = true }
|
||||||
repository = "https://github.com/saphyr-rs/saphyr"
|
|
||||||
readme = "README.md"
|
|
||||||
edition = "2021"
|
|
||||||
rust-version = "1.70.0"
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [ "encoding" ]
|
default = [ "encoding" ]
|
||||||
encoding = [ "dep:encoding_rs" ]
|
encoding = [ "dep:encoding_rs" ]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
arraydeque = "0.5.1"
|
arraydeque = { workspace = true }
|
||||||
saphyr-parser = "0.0.2"
|
encoding_rs = { workspace = true, optional = true }
|
||||||
encoding_rs = { version = "0.8.33", optional = true }
|
hashlink = { workspace = true }
|
||||||
hashlink = "0.8"
|
saphyr-parser = { workspace = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
quickcheck = "1.0"
|
quickcheck = { workspace = true }
|
||||||
|
|
||||||
[profile.release-lto]
|
[lints]
|
||||||
inherits = "release"
|
workspace = true
|
||||||
lto = true
|
|
||||||
|
|
Loading…
Reference in a new issue