refactor: loosen dep compat & separate bin as feature

This commit is contained in:
Wataru Otsubo 2025-02-10 22:21:05 +09:00
parent 3fc6bd14fe
commit 25dba869db
3 changed files with 19 additions and 17 deletions

View file

@ -10,28 +10,31 @@ build = "build.rs"
[[bin]]
name = "endcap-sl-software-ri-generator"
path = "src/main.rs"
required-features = ["bin"]
[lib]
name = "endcap_sl_software_ri_generator"
path = "src/lib.rs"
[dependencies]
anyhow = "1.0.95"
chrono = "0.4.39"
clap = { version = "4.5.28", features = ["derive"] }
env_logger = "0.11.6"
anyhow = { version = "1.0", optional = true }
chrono = "0.4"
clap = { version = "4.5", features = ["derive"] }
env_logger = { version = "0.11", optional = true }
heck = "0.5"
hex = "0.4.3"
hex = "0.4"
itertools = "0.14"
log = "0.4"
prettyplease = "0.2"
proc-macro2 = "1.0.93"
proc-macro2 = "1.0"
quote = "1.0"
roxmltree = "0.20"
sha2 = "0.10"
syn = "2.0.96"
syn = "2.0"
thiserror = "2.0"
typenum = "1.17.0"
[build-dependencies]
vergen-gitcl = { version = "1.0.0", features = ["build", "cargo", "rustc", "si"] }
vergen-gitcl = { version = "1.0", features = ["build", "cargo", "rustc", "si"] }
[features]
bin = ["anyhow", "env_logger"]