Skip to content

Commit d28603a

Browse files
committed
Tidies up the configuration to better support VS Code
1 parent 45d236a commit d28603a

File tree

4 files changed

+39
-27
lines changed

4 files changed

+39
-27
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[._]*.sw[a-p]
44
**/*.rs.bk
55
Cargo.lock
6+
Cargo.toml
67

78
# Created by https://www.gitignore.io/api/intellij+all
89

.vscode/settings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"rust-analyzer.cargo.features": [
3-
"52840"
4-
]
2+
"rust-analyzer.cargo.target": "thumbv7em-none-eabi",
3+
"rust-analyzer.checkOnSave.allTargets": false,
54
}

Cargo.example.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file is a template for a Cargo workspace for developer convenience.
2+
#
3+
# Since Cargo resolves all features for all crates in the workspace together,
4+
# it is not possible to have a workspace with all the crates together, since they
5+
# enable incompatible features.
6+
#
7+
# Instead, we provide this template so you can enable only the crates you're going to
8+
# work on. This makes eg rust-analyzer check-on-save and autocomplete work, but only
9+
# in these crates, without any feature conflict.
10+
#
11+
# Copy this file to `Cargo.toml` and uncomment one group of crates below.
12+
#
13+
# `/Cargo.toml` is already in .gitignore, so you don't commit it accidentally.
14+
15+
[workspace]
16+
members = [
17+
# Uncomment ONLY ONE of the hals below, depending on your target
18+
# "nrf52810-hal",
19+
# "nrf52811-hal",
20+
# "nrf52832-hal",
21+
# "nrf52833-hal",
22+
"nrf52840-hal",
23+
"nrf52840-hal-tests",
24+
# "nrf9160-hal",
25+
]
26+
27+
[profile.dev]
28+
incremental = false
29+
codegen-units = 1
30+
debug = true
31+
lto = false
32+
33+
[profile.release]
34+
debug = true
35+
lto = true
36+
opt-level = "s"

Cargo.toml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)