This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pt/Cargo.toml

76 lines
1.9 KiB
TOML

[workspace]
resolver = "2"
members = [
".",
"members/libpt-core",
"members/libpt-math",
"members/libpt-log",
"members/libpt-net", "members/libpt-py",
]
default-members = [".", "members/libpt-core"]
[workspace.package]
publish = true
version = "0.3.11"
edition = "2021"
authors = ["Christoph J. Scherr <software@cscherr.de>"]
license = "MIT"
description = "Personal multitool"
readme = "README.md"
homepage = "https://git.cscherr.de/PlexSheep/pt"
repository = "https://git.cscherr.de/PlexSheep/pt"
keywords = ["cli", "library"]
categories = [
"command-line-utilities",
"development-tools",
"development-tools::ffi",
]
[workspace.dependencies]
anyhow = "1.0.79"
thiserror = "1.0.56"
libpt-core = { version = "0.3.11", path = "members/libpt-core" }
libpt-bintols = { version = "0.3.11", path = "members/libpt-bintols" }
libpt-log = { version = "0.3.11", path = "members/libpt-log" }
libpt-math = { version = "0.3.11", path = "members/libpt-math" }
libpt-net = { version = "0.3.11", path = "members/libpt-net" }
libpt-py = { version = "0.3.11", path = "members/libpt-py" }
[package]
name = "libpt"
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"]
py = ["dep:libpt-py"]
[lib]
name = "libpt"
crate-type = [
"dylib", # .dll, .so, .dynlib
"staticlib", # .lib, .a
"rlib",
]
[dependencies]
libpt-core = { workspace = true }
libpt-bintols = { workspace = true, optional = true }
libpt-log = { workspace = true, optional = true }
libpt-math = { workspace = true, optional = true }
libpt-net = { workspace = true, optional = true }
libpt-py = { workspace = true, optional = true }