Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove debug info in dev builds #8579

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions editoast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,10 @@ tempfile.workspace = true

[lints]
workspace = true

[profile.dev]
debug = "limited"

[profile.dev-for-debug]
inherits = "dev"
debug = "full"
13 changes: 13 additions & 0 deletions editoast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ To avoid thread conflicts while accessing the database, use serial_test
cargo test -- --test-threads=4
```

# Debugging

:warning: For improving compilation time and therefore the developer experience, the project
choose to strip out debug information by default, resulting in [about 20%
shorter compilation time](https://github.com/OpenRailAssociation/osrd/pull/8579).

If you need to debug the project, you might want to activate the `dev-for-debug` profile
which will build with debug information.

```
cargo build --profile dev-for-debug
```

## Useful tools

Here a list of components to help you in your development (see CI jobs if necessary):
Expand Down
Loading