Skip to content

Conversation

@d3zd3z
Copy link
Member

@d3zd3z d3zd3z commented Oct 24, 2025

A few minor changes to the tree to make vscode a little easier to use:

  • Add a default project, so cargo test will just work at the top level.
  • Ignore a few files coming from clangd and bear when using these tools from 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 <david.brown@linaro.org>
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 <david.brown@linaro.org>
Describe a few minor improvements to make vscode development a bit
easier.

Signed-off-by: David Brown <david.brown@linaro.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants