Skip to content

Commit

Permalink
Added default-features = false to half dependency to fix no_std compa…
Browse files Browse the repository at this point in the history
…tibility
  • Loading branch information
samcrow committed May 28, 2023
1 parent 781fe50 commit 9004e2e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- `canadensis_dsdl_frontend`: Fixed duplicate error text
- `canadensis_codegen_rust`: Added default-features = false to half dependency in generated code to fix no_std
compatibility
- `canadensis_encoding`: Added default-features = false to half dependency to fix no_std compatibility
- `canadensis_data_types`: Added default-features = false to half dependency to fix no_std compatibility

## [canadensis_bxcan-v0.3.0](https://github.com/samcrow/canadensis/releases/tag/canadensis_bxcan-v0.3.0) - 2023-03-30

Expand Down
2 changes: 1 addition & 1 deletion canadensis_codegen_rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mod struct_as_enum;
pub fn generated_code_dependencies() -> String {
String::from(
r#"[dependencies]
half = { version = "2.2", features = ["zerocopy"] }
half = { version = "2.2", default-features = false, features = ["zerocopy"] }
heapless = "0.7.7"
zerocopy = "0.6.0"
canadensis_core = "0.3.0"
Expand Down
2 changes: 1 addition & 1 deletion canadensis_data_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description = "Automatically generated types for all Cyphal public regulated dat
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
half = { version = "2.2", features = ["zerocopy"] }
half = { version = "2.2", default-features = false, features = ["zerocopy"] }
heapless = "0.7.7"
zerocopy = "0.6.0"

Expand Down
2 changes: 1 addition & 1 deletion canadensis_encoding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
description = "A Cyphal implementation: Transfer encoding and decoding"

[dependencies]
half = "2.2"
half = { version = "2.2", default-features = false }
zerocopy = "0.6.0"

[dev-dependencies]
Expand Down

0 comments on commit 9004e2e

Please sign in to comment.