[workspace] resolver = "2" members = [ ".", "members/libpt-core", "members/libpt-bintols", "members/libpt-math", "members/libpt-log", "members/libpt-net", ] default-members = [".", "members/libpt-core"] [workspace.package] publish = true version = "0.2.5" edition = "2021" authors = ["Christoph J. Scherr "] license = "MIT" description = "Personal multitool" readme = "README.md" homepage = "https://git.cscherr.de/PlexSheep/libpt" repository = "https://git.cscherr.de/PlexSheep/libpt" keywords = ["cli", "library"] categories = [ "command-line-utilities", "development-tools", "development-tools::ffi", ] [workspace.dependencies] anyhow = "1.0.79" thiserror = "1.0.56" libpt-log = { version = "0.2.5", path = "../libpt-log" } libpt-bintols = { version = "0.2.5", ath = "../libpt-bintols" } [package] name = "libpt" autobins = true publish.workspace = true version.workspace = true edition.workspace = true authors.workspace = true license.workspace = true description.workspace = true readme.workspace = true homepage.workspace = true repository.workspace = true keywords.workspace = true categories.workspace = true [features] default = ["log", "core"] core = [] math = ["dep:libpt-math"] log = ["dep:libpt-log"] bintols = ["dep:libpt-bintols"] net = ["dep:libpt-net"] ccc = ["math"] bin = ["bintols", "net", "dep:clap", "dep:clap-num", "dep:clap-verbosity-flag"] [lib] name = "libpt" crate-type = [ "dylib", # .dll, .so, .dynlib "staticlib", # .lib, .a "rlib", ] [[bin]] name = "ccc" path = "src/ccc/mod.rs" [[bin]] name = "hedu" path = "src/hedu/mod.rs" [dependencies] libpt-core = { version = "0.2.0-alpha.2", path = "members/libpt-core", registry = "cscherr" } libpt-bintols = { version = "0.2.0-alpha.2", optional = true, path = "members/libpt-bintols", registry = "cscherr" } libpt-log = { version = "0.2.0-alpha.2", optional = true, path = "members/libpt-log", registry = "cscherr" } libpt-math = { version = "0.2.0-alpha.2", optional = true, path = "members/libpt-math", registry = "cscherr" } libpt-ccc = { version = "0.2.0-alpha.2", optional = true, path = "members/libpt-ccc", registry = "cscherr" } libpt-net = { version = "0.2.0-alpha.2", optional = true, path = "members/libpt-net", registry = "cscherr" } clap = { version = "4.4.4", features = ["derive"], optional = true } clap-num = { version = "1.0.2", optional = true } clap-verbosity-flag = { version = "2.0.1", optional = true }