rust-use 0.2.0

A library of behaviors for agents to build and drive the next generation of user interfaces.
# 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"
rust-version = "1.88"
name = "rust-use"
version = "0.2.0"
authors = ["Khalid Abdi"]
build = "build.rs"
links = "rust-use"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library of behaviors for agents to build and drive the next generation of user interfaces."
readme = "README.md"
keywords = [
    "ui",
    "agents",
    "gpui",
    "mcp",
    "automation",
]
categories = [
    "gui",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/better-vault/rust-use"

[package.metadata.docs.rs]
all-features = true

[features]
agent = ["dep:rust-use-agent"]
default = [
    "macros",
    "agent",
]
gpui = [
    "agent",
    "macros",
    "dep:gpui",
    "dep:rust-use-gpui",
]
ipc = [
    "agent",
    "rust-use-agent/ipc",
    "rust-use-tauri?/ipc",
]
macros = ["dep:rust-use-macros"]
mcp = [
    "agent",
    "rust-use-agent/mcp",
]
tauri = [
    "agent",
    "dep:rust-use-tauri",
]

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

[[example]]
name = "agent_tour"
path = "examples/agent_tour.rs"
test = true
required-features = [
    "macros",
    "agent",
]

[[example]]
name = "gpui_counter"
path = "examples/gpui_counter.rs"
required-features = ["gpui"]

[[test]]
name = "atomic"
path = "tests/atomic.rs"

[[test]]
name = "behaviors"
path = "tests/behaviors.rs"

[[test]]
name = "macros"
path = "tests/macros.rs"

[[test]]
name = "readme"
path = "tests/readme.rs"

[[test]]
name = "safety"
path = "tests/safety.rs"

[dependencies.gpui]
version = "0.2.2"
optional = true

[dependencies.rust-use-agent]
version = "0.2.0"
optional = true

[dependencies.rust-use-core]
version = "0.2.0"

[dependencies.rust-use-gpui]
version = "0.2.0"
optional = true

[dependencies.rust-use-macros]
version = "0.2.0"
optional = true

[dependencies.rust-use-tauri]
version = "0.2.0"
optional = true

[dependencies.serde_json]
version = "1"

[lints.clippy]
assert_is_empty = "allow"
expect_used = "warn"
module_name_repetitions = "allow"
must_use_candidate = "allow"
unwrap_used = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1