Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure multi feature crate #16

Merged
merged 3 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions build/rust/Cargo.toml
Taucher2003 marked this conversation as resolved.
Show resolved Hide resolved
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");
}