From 50eefe2531776205849af8d3dbc0ec676540e095 Mon Sep 17 00:00:00 2001 From: David Brown Date: Fri, 24 Oct 2025 14:16:32 -0600 Subject: [PATCH 1/3] gitignore: Ignore some files related to vscode The clangd plugin in vscode is useful for working on the code. However, in order to function, especially with numerous feature flags and such, it needs a `compile-commands.json` file. This can be generated for a given build with something like: bear --append -- cargo test --features sig-ecdsa which will create this file. The clangd plugin also creates a `.cache` directory to hold cached versions of its analysis. Support this usage by adding both of these to the .gitignore Signed-off-by: David Brown --- .gitignore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 79866888ec..45ad705fb4 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,12 @@ rusty-tags.* .cproject .project +# Clangd creates this to cache its results +.cache/ + +# The code cache is a transient file. +compile_commands.json + # Compiled python modules. *.pyc From 5b0698c472aab938b7667f0a6adaa5d5b19f9269 Mon Sep 17 00:00:00 2001 From: David Brown Date: Fri, 24 Oct 2025 14:19:57 -0600 Subject: [PATCH 2/3] rust: Make workspace more convenient with default Set the default-members in the top-level `Cargo.toml` file. This tells cargo what to do if it is invoked at the top level. Using this allows builds with the simulate to be done directly from the top level directory without having to manually cd to the sim directory. Combined with `bear`, this makes development with vscode much more handy. Signed-off-by: David Brown --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 185777f579..cb071db4d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ members = ["sim"] exclude = ["ptest"] resolver = "2" +default-members = ["sim"] # The simulator runs very slowly without optimization. A value of 1 # compiles in about half the time, but runs about 5-6 times slower. 2 From 75a92315a5590202d39e7247e06b339c55c3ff7d Mon Sep 17 00:00:00 2001 From: David Brown Date: Fri, 24 Oct 2025 14:23:42 -0600 Subject: [PATCH 3/3] docs: release-notes: notes on vscode improvements Describe a few minor improvements to make vscode development a bit easier. Signed-off-by: David Brown --- docs/release-notes.d/vscode.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 docs/release-notes.d/vscode.md diff --git a/docs/release-notes.d/vscode.md b/docs/release-notes.d/vscode.md new file mode 100644 index 0000000000..df4fea82d8 --- /dev/null +++ b/docs/release-notes.d/vscode.md @@ -0,0 +1,2 @@ +- A few changes to make vscode nicer, including a default package to build at + the top level, and ignoring some of the cache files from vscode.