Skip to content

Commit

Permalink
added feature flag for bindings
Browse files Browse the repository at this point in the history
Signed-off-by: luk3ark <luk3ark@gmail.com>
  • Loading branch information
LUK3ARK authored and brooksmtownsend committed Jul 12, 2024
1 parent 87862d4 commit 600b419
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/wadm-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ keywords = ["webassembly", "wasmcloud", "wadm"]
license = "Apache-2.0"
repository = "https://github.com/wasmcloud/wadm"

[features]
default = []
wit = ["wit-bindgen-wrpc"]

[dependencies]
serde_yaml = { workspace = true }
anyhow = { workspace = true }
Expand All @@ -34,4 +38,4 @@ tracing-futures = { workspace = true }
ulid = { workspace = true, features = ["serde"] }
uuid = { workspace = true }
wasmcloud-control-interface = { workspace = true }
wit-bindgen-wrpc = { workspace = true }
wit-bindgen-wrpc = { workspace = true, optional = true }
2 changes: 2 additions & 0 deletions crates/wadm-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ use std::collections::{BTreeMap, HashMap};
use serde::{Deserialize, Serialize};

pub mod api;
#[cfg(feature = "wit")]
pub mod bindings;
#[cfg(feature = "wit")]
pub use bindings::*;
pub mod validation;

Expand Down

0 comments on commit 600b419

Please sign in to comment.