Skip to content

Commit

Permalink
Merge pull request #16 from code0-tech/11-configure-multi-feature-crate
Browse files Browse the repository at this point in the history
11-configure-multi-feature-crate
  • Loading branch information
Taucher2003 authored Nov 19, 2024
2 parents d23f291 + 1b67048 commit ad99143
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
version = "0.0.0"
name = "tucana-internal"
name = "tucana"
edition = "2021"
description = "The rust crate for the internal gRPC communication of Code0"
repository = "https://github.com/code0-tech/tucana"
Expand All @@ -20,5 +20,11 @@ serde_json = "1.0.120"
tonic-build = "0.12.1"

[lib]
name = "tucana_internal"
path = "src/lib.rs"
name = "tucana"
path = "src/lib.rs"

[features]
shared = []
aquila = ["shared"]
sagittarius = ["shared"]
all = ["aquila", "sagittarius"]
3 changes: 3 additions & 0 deletions build/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#[cfg(feature = "sagittarius")]
pub mod sagittarius {
include!("generated/sagittarius.rs");
}

#[cfg(feature = "aquila")]
pub mod aquila {
include!("generated/aquila.rs");
}

#[cfg(feature = "shared")]
pub mod shared {
include!("generated/shared.rs");
}

0 comments on commit ad99143

Please sign in to comment.