-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from flavio/multiple-fixes
multiple fixes
- Loading branch information
Showing
8 changed files
with
113 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: test suite | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
name: cargo test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- run: | | ||
sudo apt update | ||
sudo apt install -y build-essential libjemalloc-dev | ||
- run: | | ||
make test | ||
make capi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,28 +9,33 @@ edition = "2021" | |
publish = true | ||
license = "Apache-2.0" | ||
authors = [ | ||
"Frederic Branczyk <[email protected]>", | ||
"Brennan Vincent <[email protected]>", | ||
"Frederic Branczyk <[email protected]>", | ||
"Brennan Vincent <[email protected]>", | ||
] | ||
repository = "https://github.com/polarsignals/rust-jemalloc-pprof" | ||
keywords = ["jemalloc", "pprof", "memory", "profiling", "observability"] | ||
categories = ["development-tools", "development-tools::profiling", "development-tools::debugging", "memory-management"] | ||
categories = [ | ||
"development-tools", | ||
"development-tools::profiling", | ||
"development-tools::debugging", | ||
"memory-management", | ||
] | ||
documentation = "https://docs.rs/jemalloc_pprof/latest/jemalloc_pprof/" | ||
homepage = "https://crates.io/crates/jemalloc_pprof" | ||
|
||
[workspace.dependencies] | ||
anyhow = "1.0.66" | ||
flate2 = "1.0.24" | ||
libc = "0.2.138" | ||
once_cell = "1.16.0" | ||
prost = { version = "0.13.1", features = ["no-recursion-limit"] } | ||
tempfile = "3.2.0" | ||
tikv-jemalloc-ctl = { version = "0.5.0", features = ["use_std"] } | ||
tracing = "0.1.37" | ||
tokio = { version = "1.32.0", features = ["time", "sync"] } | ||
paste = "1.0.11" | ||
num = "0.4.0" | ||
errno = "0.3.8" | ||
anyhow = "1" | ||
flate2 = "1.0" | ||
libc = "0.2" | ||
once_cell = "1.19" | ||
prost = { version = "0.13", features = ["no-recursion-limit"] } | ||
tempfile = "3.11" | ||
tikv-jemalloc-ctl = { version = "0.6", features = ["use_std"] } | ||
tracing = "0.1" | ||
tokio = { version = "1", features = ["time", "sync"] } | ||
paste = "1.0" | ||
num = "0.4" | ||
errno = "0.3" | ||
util = { path = "./util", version = "0.4", package = "pprof_util" } | ||
mappings = { path = "./mappings", version = "0.5" } | ||
|
||
|
@@ -44,3 +49,10 @@ once_cell.workspace = true | |
tracing.workspace = true | ||
tempfile.workspace = true | ||
tokio.workspace = true | ||
|
||
[dev-dependencies] | ||
tikv-jemallocator = "0.6" | ||
axum = "0.7" | ||
# re-import tokio to enable all its features. This is required to | ||
# successfully compile the test snipptes that are part of the documentation | ||
tokio = { version = "1", features = ["full"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.PHONY: capi | ||
capi: | ||
cargo build -p capi --release | ||
|
||
.PHONY: fmt | ||
fmt: | ||
cargo fmt --all -- --check | ||
|
||
.PHONY: lint | ||
lint: | ||
cargo clippy --workspace -- -D warnings | ||
|
||
.PHONY: doc | ||
doc: | ||
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo doc --all-features --no-deps | ||
|
||
.PHONY: test | ||
test: fmt lint doc | ||
cargo test --workspace | ||
|
||
.PHONY: clean | ||
clean: | ||
cargo clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters