# # Copyright (c) 2023 ZettaScale Technology # # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 # which is available at https://www.apache.org/licenses/LICENSE-2.0. # # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 # # Contributors: # ZettaScale Zenoh Team, # [package] rust-version = { workspace = true } name = "zenoh-plugin-rest" version = { workspace = true } repository = { workspace = true } homepage = { workspace = true } authors = { workspace = true } edition = { workspace = true } license = { workspace = true } categories = ["network-programming", "web-programming::http-server"] description = "The zenoh REST plugin" [features] default = ["dynamic_plugin"] dynamic_plugin = [] static_plugin = ['async-std'] [lib] name = "zenoh_plugin_rest" crate-type = ["cdylib", "rlib"] [dependencies] async-std = { workspace = true, features = ["tokio1"], optional = true} anyhow = { workspace = true, features = ["default"] } base64 = { workspace = true } flume = { workspace = true } futures = { workspace = true } git-version = { workspace = true } http-types = { workspace = true } lazy_static = { workspace = true } tracing = { workspace = true } schemars = { workspace = true } serde = { workspace = true, features = ["default"] } serde_json = { workspace = true } tide = { workspace = true } tokio = { workspace = true } zenoh = { workspace = true, features = [ "plugins", "default", "internal", "unstable", ] } zenoh-plugin-trait = { workspace = true } [build-dependencies] rustc_version = { workspace = true } schemars = { workspace = true } serde = { workspace = true, features = ["default"] } serde_json = { workspace = true } jsonschema = { workspace = true } [dev-dependencies] clap = { workspace = true } [[example]] name = "z_serve_sse" path = "examples/z_serve_sse.rs" [package.metadata.deb] name = "zenoh-plugin-rest" maintainer = "zenoh-dev@eclipse.org" copyright = "2024 ZettaScale Technology" section = "net" license-file = ["../../LICENSE", "0"] depends = "zenohd (=1.1.0)" [package.metadata.cargo-machete] ignored = ["async-std"]