50 lines
1.4 KiB
TOML
50 lines
1.4 KiB
TOML
[package]
|
|
name = "julid-rs"
|
|
version = "1.6.18033988"
|
|
authors = ["Joe Ardent <code@ardent.nebcorp.com>"]
|
|
edition = "2021"
|
|
keywords = ["ulid", "library", "sqlite", "extension", "julid"]
|
|
|
|
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"]
|
|
|
|
[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 }
|
|
|
|
[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
|