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

Improve the Generated project to be cross compilation friendly #234

Open
gbin opened this issue Jan 28, 2025 · 0 comments
Open

Improve the Generated project to be cross compilation friendly #234

gbin opened this issue Jan 28, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@gbin
Copy link
Collaborator

gbin commented Jan 28, 2025

Change the template project so the log reader and its dependencies are behind a use flag.

It is annoying when you want to cross compile and it drags in Python... here an example of a Cargo.toml that works:

[package]
name = "drone"
version = "0.1.0"
edition = "2021"
default-run = "drone"

# The main executable of your application
[[bin]]
name = "drone"
path = "src/main.rs"

[[bin]]
name = "drone-logreader"
path = "src/logreader.rs"
required-features = ["logreader"] 

[dependencies]
cu29 = { version = "*" }
bincode = { version = "2.0.0-rc.3", features = ["derive"] }
cu29-helpers = { version = "*" }

[features]
default = [] 
logreader = ["Cu29-export"] 

[dependencies.cu29-export]
version = "*"
optional = true

see templates/README.md to see what I am talking about.

@gbin gbin added enhancement New feature or request good first issue Good for newcomers labels Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant