2023-07-25 19:04:38 +00:00
|
|
|
[package]
|
2023-07-26 00:51:49 +00:00
|
|
|
name = "julid-rs"
|
2024-04-09 21:54:11 +00:00
|
|
|
version = "1.6.18033988"
|
2023-07-26 00:51:49 +00:00
|
|
|
authors = ["Joe Ardent <code@ardent.nebcorp.com>"]
|
2023-07-25 19:04:38 +00:00
|
|
|
edition = "2021"
|
2023-07-27 01:21:42 +00:00
|
|
|
keywords = ["ulid", "library", "sqlite", "extension", "julid"]
|
2023-07-26 00:51:49 +00:00
|
|
|
|
2023-07-31 14:33:07 +00:00
|
|
|
description = "A crate and loadable extension for SQLite that provides Joe's ULIDs."
|
2023-07-26 00:51:49 +00:00
|
|
|
readme = "README.md"
|
|
|
|
license-file = "LICENSE.md"
|
|
|
|
repository = "https://gitlab.com/nebkor/julid"
|
|
|
|
|
2023-07-27 01:21:42 +00:00
|
|
|
[features]
|
2023-09-03 20:16:04 +00:00
|
|
|
default = ["serde", "sqlx"] # just the regular crate
|
2023-07-27 21:00:26 +00:00
|
|
|
serde = ["dep:serde"]
|
|
|
|
sqlx = ["dep:sqlx"]
|
2023-07-27 01:21:42 +00:00
|
|
|
|
2023-07-28 14:11:56 +00:00
|
|
|
# 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
|
2023-07-29 23:16:13 +00:00
|
|
|
plugin = ["dep:sqlite-loadable"] # builds libjulid.* for loading into sqlite
|
2023-07-28 14:11:56 +00:00
|
|
|
|
2023-07-26 00:51:49 +00:00
|
|
|
[lib]
|
|
|
|
name = "julid"
|
|
|
|
crate-type = ["cdylib", "rlib"]
|
2023-07-25 19:04:38 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2023-07-26 00:51:49 +00:00
|
|
|
rand = "0.8"
|
2023-09-03 16:44:35 +00:00
|
|
|
|
|
|
|
# for the CLI
|
|
|
|
clap = { version = "4.3", default-features = false, features = ["help", "usage", "std", "derive"] }
|
2023-09-03 20:16:04 +00:00
|
|
|
chrono = { version = "0.4", default-features = false, features = ["std", "time"] }
|
2023-09-03 16:44:35 +00:00
|
|
|
|
2023-07-28 14:11:56 +00:00
|
|
|
# all other deps are optional
|
2023-07-27 01:21:42 +00:00
|
|
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
|
|
|
sqlx = { version = "0.7", features = ["sqlite"], default-features = false, optional = true }
|
2023-07-27 21:00:26 +00:00
|
|
|
sqlite-loadable = { version = "0.0.5", optional = true }
|
2023-07-28 14:11:56 +00:00
|
|
|
|
2023-10-07 20:51:46 +00:00
|
|
|
[dev-dependencies]
|
|
|
|
divan = "0.1"
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "simple"
|
|
|
|
harness = false
|
|
|
|
|
2023-09-03 16:44:35 +00:00
|
|
|
[[bin]]
|
|
|
|
name = "julid-gen"
|
|
|
|
path = "src/bin/gen.rs"
|
2023-07-29 23:16:13 +00:00
|
|
|
|
2023-07-28 14:11:56 +00:00
|
|
|
[package.metadata.docs.rs]
|
2023-07-29 23:16:13 +00:00
|
|
|
all-features = true
|