[package] name = "opp" authors = ["29 <791603901@qq.com>"] version = "0.0.7" license = "MIT/Apache-2.0" readme = "README.md" keywords = ["http", "ipc", "gateway", "tokio", "plug-in"] categories = ["asynchronous", "authentication", "network-programming", "web-programming", "web-programming::websocket"] repository = "https://github.com/opensound-org/opp" homepage = "https://github.com/opensound-org/opp" documentation = "https://docs.rs/opp" description = """ 🚧 OpenPlugin Protocol (WIP, nothing usable for now). """ edition = "2021" # Because we used `rustc-check-cfg` in build script # 因为我们在构建脚本中使用了`rustc-check-cfg` # https://blog.rust-lang.org/2024/05/06/check-cfg.html rust-version = "1.80.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [package.metadata.docs.rs] all-features = true [dependencies] # ast deps anyhow = "1.0.89" # Universal dependencies # 通用依赖 tokio = { version = "1.40.0", features = [] } # Universal optional dependencies # 通用可选依赖 tracing = { version = "0.1.40", optional = true } # Kernel dependencies # 内核依赖 http-body-util = { version = "0.1.2", optional = true } hyper = { version = "1.4.1", optional = true } hyper-util = { version = "0.1.9", features = ["tokio", "server-auto", "server-graceful"], optional = true } # Gadget dependencies # Gadget依赖 # All dependencies required for each demo Gadgets and Kernel binary # 各演示Gadget及Kernel二进制需要的所有依赖项 nu-ansi-term = { version = "0.50.1", optional = true } tracing-subscriber = { version = "0.3.18", features = ["chrono"], optional = true } [build-dependencies] version_check = "0.9.5" [features] tracing = ["dep:tracing"] kernel = ["tokio/net", "dep:http-body-util", "dep:hyper", "dep:hyper-util"] # The feature set required for all binaries # 所有二进制都需要的特性集合 bin = ["tracing", "tokio/rt-multi-thread", "tokio/macros", "dep:nu-ansi-term", "dep:tracing-subscriber"] # Feature that needs to be enabled for binary `opk` (OpenPlugin Kernel) # 二进制`opk`(OpenPlugin Kernel)需要启用的特性 opk = ["kernel", "bin"] [[bin]] name = "opk" path = "src/main.rs" required-features = ["opk"]