[package]
edition = "2021"
rust-version = "1.98.1"
name = "wasm-capability-contract"
version = "0.4.0"
authors = ["SWE Engineering Labs"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generic, domain-agnostic capability pattern: CapabilityEngine/CapabilityRegistry/CapabilityDispatcher trait shapes + component/capability types. Trait definitions only -- see wasm-capability-core for this pattern's own default implementation, extracted from agent-runtime's ADR-001 (agent-runtime#31, ADR-011)."
readme = "README.md"
keywords = [
"wasm",
"capability",
"contract",
"swe",
]
categories = [
"wasm",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sweengineeringlabs/wasm-capability-pattern"
[package.metadata.arch]
application_type = "port"
service_type = "capability"
[lib]
name = "wasm_capability_contract"
path = "src/lib.rs"
[[example]]
name = "build_a_grant"
path = "examples/build_a_grant.rs"
[[test]]
name = "api_int_test"
path = "tests/api_int_test.rs"
[[test]]
name = "capability_descriptor_e2e_test"
path = "tests/capability_descriptor_e2e_test.rs"
[[test]]
name = "capability_dispatcher_e2e_test"
path = "tests/capability_dispatcher_e2e_test.rs"
[[test]]
name = "capability_engine_e2e_test"
path = "tests/capability_engine_e2e_test.rs"
[[test]]
name = "capability_error_e2e_test"
path = "tests/capability_error_e2e_test.rs"
[[test]]
name = "capability_grant_e2e_test"
path = "tests/capability_grant_e2e_test.rs"
[[test]]
name = "capability_registry_e2e_test"
path = "tests/capability_registry_e2e_test.rs"
[[test]]
name = "capability_scope_e2e_test"
path = "tests/capability_scope_e2e_test.rs"
[[test]]
name = "component_handle_e2e_test"
path = "tests/component_handle_e2e_test.rs"
[[test]]
name = "component_manifest_e2e_test"
path = "tests/component_manifest_e2e_test.rs"
[[test]]
name = "component_validator_e2e_test"
path = "tests/component_validator_e2e_test.rs"
[[test]]
name = "resource_limits_e2e_test"
path = "tests/resource_limits_e2e_test.rs"
[[test]]
name = "validate_component_request_e2e_test"
path = "tests/validate_component_request_e2e_test.rs"
[dependencies.futures]
version = "0.3"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["rt"]
default-features = false
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt",
]
[lints.clippy]
expect_used = "deny"
unwrap_used = "deny"
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"