1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-09-19 03:08:30 +03:00
git-cliff/Cargo.toml
Amin Yahyaabadi 35dc1e46fd
feat(profiler): support performance profiling via pprof (#768)
* feat: support performance profiling via pprof

This adds support for performance profiling that allows for finding the bottlenecks and performance optimizations.

It can be enabled via `profiler` feature and the `bench` build profile.

```shell
cargo build --profile=bench --features=profiler
```

* refactor(profiling): clean up implementation

* feat(ci): run profiler

* fix(ci): fetch all the history for profiler

* docs(website): add profiling docs

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-07-29 11:25:23 +03:00

34 lines
553 B
TOML

[workspace]
resolver = "2"
members = ["git-cliff-core", "git-cliff"]
[workspace.dependencies]
regex = "1.10.5"
glob = "0.3.1"
log = "0.4.21"
secrecy = { version = "0.8.0", features = ["serde"] }
lazy_static = "1.5.0"
dirs = "5.0.1"
[profile.dev]
opt-level = 0
debug = true
panic = "abort"
[profile.test]
opt-level = 0
debug = true
[profile.release]
opt-level = 3
debug = false
panic = "unwind"
lto = true
codegen-units = 1
strip = true
[profile.bench]
opt-level = 3
debug = true # used by the profiler
strip = false # keep symbols for the profiler