globuid 0.1.0

A globally unique ID generator with pluggable algorithms and transport layer
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "globuid"
version = "0.1.0"
authors = ["GlobUid Contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A globally unique ID generator with pluggable algorithms and transport layer"
homepage = "https://github.com/lispking/globuid"
documentation = "https://docs.rs/globuid"
readme = "README.md"
keywords = [
    "snowflake",
    "ulid",
    "nanoid",
    "id-generator",
    "distributed",
]
categories = [
    "algorithms",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/lispking/globuid"

[features]
default = []
full = [
    "http",
    "grpc",
]
grpc = [
    "tonic",
    "prost",
]
http = [
    "axum",
    "tower",
    "tower-http",
]

[lib]
name = "globuid"
path = "src/lib.rs"

[[bin]]
name = "globuid"
path = "src/bin/globuid.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[dependencies.axum]
version = "0.7"
optional = true

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.getrandom]
version = "0.3"

[dependencies.prost]
version = "0.13"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tonic]
version = "0.12"
optional = true

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.tower-http]
version = "0.6"
features = ["cors"]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]

[build-dependencies.tonic-build]
version = "0.12"