# 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 = "2021"
name = "rbac-rs"
version = "0.1.2"
authors = ["Jafrul Hossain <jafrultripto@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pluggable RBAC system for Rust using SQLx."
readme = "README.md"
keywords = [
    "rbac",
    "authorization",
    "roles",
    "permissions",
    "sqlx",
]
categories = [
    "authentication",
    "database",
]
license = "MIT"
repository = "https://github.com/JafrulTripto/permissions-rs.git"

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

[[bin]]
name = "install_rbac"
path = "src/bin/install.rs"

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

[dependencies.sqlx]
version = "0.8.3"
features = [
    "postgres",
    "runtime-tokio",
    "uuid",
    "migrate",
]

[dependencies.thiserror]
version = "2.0.11"

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

[dependencies.uuid]
version = "1.12.1"
features = [
    "v4",
    "serde",
]
optional = true

[features]
default = ["uuid-id"]
incremental-id = []
uuid-id = ["uuid"]
