julid-rs/Cargo.toml

51 lines
1.4 KiB
TOML
Raw Normal View History

2023-07-25 19:04:38 +00:00
[package]
name = "julid-rs"
version = "1.6.18033988"
authors = ["Joe Ardent <code@ardent.nebcorp.com>"]
2023-07-25 19:04:38 +00:00
edition = "2021"
keywords = ["ulid", "library", "sqlite", "extension", "julid"]
2023-07-31 14:33:07 +00:00
description = "A crate and loadable extension for SQLite that provides Joe's ULIDs."
readme = "README.md"
license-file = "LICENSE.md"
repository = "https://gitlab.com/nebkor/julid"
[features]
default = ["serde", "sqlx"] # just the regular crate
serde = ["dep:serde"]
sqlx = ["dep:sqlx"]
# WARNING! don't enable this feature in your project's Cargo.toml if using julid-rs as a dependency;
# see https://gitlab.com/nebkor/julid/-/issues/1
plugin = ["dep:sqlite-loadable"] # builds libjulid.* for loading into sqlite
[lib]
name = "julid"
crate-type = ["cdylib", "rlib"]
2023-07-25 19:04:38 +00:00
[dependencies]
rand = "0.8"
# for the CLI
clap = { version = "4.3", default-features = false, features = ["help", "usage", "std", "derive"] }
chrono = { version = "0.4", default-features = false, features = ["std", "time"] }
# all other deps are optional
serde = { version = "1.0", features = ["derive"], optional = true }
sqlx = { version = "0.7", features = ["sqlite"], default-features = false, optional = true }
sqlite-loadable = { version = "0.0.5", optional = true }
2023-10-07 20:51:46 +00:00
[dev-dependencies]
divan = "0.1"
[[bench]]
name = "simple"
harness = false
[[bin]]
name = "julid-gen"
path = "src/bin/gen.rs"
[package.metadata.docs.rs]
all-features = true