Skip to content
Open
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: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: resolve MSRV
id: resolve-msrv
run:
echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["package"]["rust-version"])'` >> $GITHUB_OUTPUT
echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("logfire/Cargo.toml", "rb"))["package"]["rust-version"])'` >> $GITHUB_OUTPUT

test:
needs: [resolve]
Expand Down Expand Up @@ -77,14 +77,16 @@ jobs:
- uses: taiki-e/install-action@cargo-llvm-cov

- run: cargo llvm-cov --all-features --codecov --output-path codecov.json
working-directory: logfire

# rust doctests (not included in cargo llvm-cov, see https://github.com/taiki-e/cargo-llvm-cov/issues/2)
- run: cargo test --doc
working-directory: logfire

- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: codecov.json
files: logfire/codecov.json
env_vars: RUST_VERSION

# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
Expand Down Expand Up @@ -113,5 +115,6 @@ jobs:
- uses: Swatinem/rust-cache@v2

- run: cargo publish
working-directory: logfire
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/target
target/
Cargo.lock
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ repos:
hooks:
- id: format
name: Format
entry: cargo fmt
entry: cargo fmt --manifest-path logfire/Cargo.toml
types: [rust]
language: system
pass_filenames: false
- id: clippy
name: Clippy
entry: cargo clippy --all-features -- -D warnings
entry: cargo clippy --manifest-path logfire/Cargo.toml --all-features -- -D warnings
types: [rust]
language: system
pass_filenames: false
- id: docs
name: Check docs
entry: env RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc --no-deps
entry: env RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc --manifest-path logfire/Cargo.toml --no-deps
types: [rust]
language: system
pass_filenames: false
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions README.md → logfire/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<a href="https://github.com/pydantic/logfire-rust/actions?query=event%3Apush+branch%3Amain+workflow%3ACI"><img src="https://github.com/pydantic/logfire-rust/actions/workflows/main.yml/badge.svg?event=push" alt="CI" /></a>
<a href="https://codecov.io/gh/pydantic/logfire-rust"><img src="https://codecov.io/gh/pydantic/logfire-rust/graph/badge.svg?token=735CNGCGFD" alt="codecov" /></a>
<a href="https://crates.io/crates/logfire"><img src="https://img.shields.io/crates/v/logfire.svg?logo=rust" alt="crates.io" /></a>
<a href="https://github.com/pydantic/logfire-rust/blob/main/LICENSE"><img src="https://img.shields.io/github/license/pydantic/logfire-rust.svg" alt="license" /></a>
<a href="https://github.com/pydantic/logfire-rust/blob/main/logfire/LICENSE"><img src="https://img.shields.io/github/license/pydantic/logfire-rust.svg" alt="license" /></a>
<a href="https://github.com/pydantic/logfire"><img src="https://img.shields.io/crates/msrv/logfire.svg?logo=rust" alt="MSRV" /></a>
<a href="https://logfire.pydantic.dev/docs/join-slack/"><img src="https://img.shields.io/badge/Slack-Join%20Slack-4A154B?logo=slack" alt="Join Slack" /></a>
</p>
Expand Down Expand Up @@ -92,11 +92,11 @@ fn main() -> Result<()> {

(Read the [Logfire concepts documentation](https://logfire.pydantic.dev/docs/concepts/) for additional detail on spans, events, and further Logfire concepts.)

See additional examples in the [examples directory](https://github.com/pydantic/logfire-rust/tree/main/examples):
See additional examples in the [examples directory](https://github.com/pydantic/logfire-rust/tree/main/logfire/examples):

- [basic](https://github.com/pydantic/logfire-rust/tree/main/examples/basic.rs)
- [axum webserver](https://github.com/pydantic/logfire-rust/tree/main/examples/axum.rs)
- [actix webserver](https://github.com/pydantic/logfire-rust/tree/main/examples/actix-web.rs)
- [basic](https://github.com/pydantic/logfire-rust/tree/main/logfire/examples/basic.rs)
- [axum webserver](https://github.com/pydantic/logfire-rust/tree/main/logfire/examples/axum.rs)
- [actix webserver](https://github.com/pydantic/logfire-rust/tree/main/logfire/examples/actix-web.rs)

### Integration

Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.