Skip to content

Commit

Permalink
Disable all proc macros for now
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 2, 2024
1 parent c478ceb commit 9910756
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// to cope with xtask and its dependencies.
"rust-analyzer.cargo.allTargets": false,
"rust-analyzer.cargo.targetDir": "target/rust-analyzer",
"rust-analyzer.procMacro.attributes.enable": false,
"rust-analyzer.procMacro.enable": false,
"rust-analyzer.cargo.features": [
"esp32c6",
"esp-hal/async",
Expand Down
14 changes: 12 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,29 @@ members = [
"extras/bench-server",
"extras/esp-wifishark",
"extras/ieee802154-sniffer",
"hil-test",
]
exclude = [
"hil-test",
"xtensa-lx",
"xtensa-lx-rt",
"xtensa-lx-rt/procmacros",
]

# https://doc.rust-lang.org/cargo/reference/profiles.html#test
# Test and bench profiles inherit from dev and release respectively.
[profile.dev]
codegen-units = 1
debug = 2
debug-assertions = true
incremental = false
opt-level = "z"
overflow-checks = true

[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false
incremental = false
opt-level = 3
lto = 'fat'
lto = "fat"
overflow-checks = false
19 changes: 0 additions & 19 deletions hil-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -228,22 +228,3 @@ generic-queue = [
integrated-timers = [
"esp-hal-embassy/integrated-timers",
]

# https://doc.rust-lang.org/cargo/reference/profiles.html#test
# Test and bench profiles inherit from dev and release respectively.
[profile.dev]
codegen-units = 1
debug = 2
debug-assertions = true
incremental = false
opt-level = "z"
overflow-checks = true

[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false
incremental = false
opt-level = 3
lto = "fat"
overflow-checks = false

0 comments on commit 9910756

Please sign in to comment.