Skip to content

Commit

Permalink
Merge pull request #45 from emit-rs/feat/library-rewrite
Browse files Browse the repository at this point in the history
Bring over the rewrite from KodrAus/emit
  • Loading branch information
KodrAus authored Jun 8, 2024
2 parents 03f1132 + f5ac058 commit 343295f
Show file tree
Hide file tree
Showing 177 changed files with 27,763 additions and 2,361 deletions.
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: all

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Run tests
run: cargo test --all --verbose
31 changes: 31 additions & 0 deletions .github/workflows/batcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: batcher

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: rustup default nightly

- name: Install cargo-hack
run: cargo install cargo-hack

- name: All
working-directory: ./batcher
run: cargo test --all-features

- name: Powerset
working-directory: ./batcher
run: cargo hack test --feature-powerset --lib

- name: Minimal versions
working-directory: ./batcher
run: cargo hack test --feature-powerset --lib -Z minimal-versions
74 changes: 74 additions & 0 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: core

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: rustup default nightly

- name: Install cargo-hack
run: cargo install cargo-hack

- name: All
working-directory: ./core
run: cargo test --all-features

- name: Powerset
working-directory: ./core
run: cargo hack test --feature-powerset --lib

- name: Minimal versions
working-directory: ./core
run: cargo hack test --feature-powerset --lib -Z minimal-versions

embedded:
name: Build (embedded)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: |
rustup default nightly
rustup target add thumbv6m-none-eabi
- name: Install cargo-hack
run: cargo install cargo-hack

- name: Powerset
working-directory: ./core
run: cargo hack check --each-feature --exclude-features std,alloc,implicit_rt,implicit_internal_rt -Z avoid-dev-deps --target thumbv6m-none-eabi

miri:
name: Test (Miri)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Miri
run: |
rustup toolchain install nightly --component miri
cargo +nightly miri setup
- name: Default features
working-directory: ./core
run: cargo +nightly miri test --lib

- name: All features
working-directory: ./core
run: cargo +nightly miri test --lib --all-features

- name: No features
working-directory: ./core
run: cargo +nightly miri test --lib --no-default-features
64 changes: 64 additions & 0 deletions .github/workflows/emit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: emit

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: rustup default nightly

- name: Install cargo-hack
run: cargo install cargo-hack

- name: All
run: cargo test --all-features

- name: Powerset
run: cargo hack test --feature-powerset --lib

- name: Minimal versions
run: cargo hack test --feature-powerset --lib -Z minimal-versions

embedded:
name: Build (embedded)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: |
rustup default nightly
rustup target add thumbv6m-none-eabi
- name: Install cargo-hack
run: cargo install cargo-hack

- name: Powerset
run: cargo hack check --each-feature --exclude-features default,rand,std,alloc,implicit_rt,implicit_internal_rt -Z avoid-dev-deps --target thumbv6m-none-eabi

miri:
name: Test (Miri)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Miri
run: |
rustup toolchain install nightly --component miri
cargo +nightly miri setup
- name: Default features
run: cargo +nightly miri test --lib

- name: No features
run: cargo +nightly miri test --lib --no-default-features
31 changes: 31 additions & 0 deletions .github/workflows/file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: file

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: rustup default nightly

- name: Install cargo-hack
run: cargo install cargo-hack

- name: All
working-directory: ./emitter/file
run: cargo test --all-features

- name: Powerset
working-directory: ./emitter/file
run: cargo hack test --feature-powerset --lib

- name: Minimal versions
working-directory: ./emitter/file
run: cargo hack test --feature-powerset --lib -Z minimal-versions
31 changes: 31 additions & 0 deletions .github/workflows/macros.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: macros

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: rustup default nightly

- name: Install cargo-hack
run: cargo install cargo-hack

- name: All
working-directory: ./macros
run: cargo test --all-features

- name: Powerset
working-directory: ./macros
run: cargo hack test --feature-powerset --lib

- name: Minimal versions
working-directory: ./macros
run: cargo hack test --feature-powerset --lib -Z minimal-versions
31 changes: 31 additions & 0 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: opentelemetry

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: rustup default nightly

- name: Install cargo-hack
run: cargo install cargo-hack

- name: All
working-directory: ./emitter/opentelemetry
run: cargo test --all-features

- name: Powerset
working-directory: ./emitter/opentelemetry
run: cargo hack test --feature-powerset --lib

- name: Minimal versions
working-directory: ./emitter/opentelemetry
run: cargo hack test --feature-powerset --lib -Z minimal-versions
31 changes: 31 additions & 0 deletions .github/workflows/otlp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: otlp

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: rustup default nightly

- name: Install cargo-hack
run: cargo install cargo-hack

- name: All
working-directory: ./emitter/otlp
run: cargo test --all-features

- name: Powerset
working-directory: ./emitter/otlp
run: cargo hack test --feature-powerset --lib

- name: Minimal versions
working-directory: ./emitter/otlp
run: cargo hack test --feature-powerset --lib -Z minimal-versions
31 changes: 31 additions & 0 deletions .github/workflows/term.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: term

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
run: rustup default nightly

- name: Install cargo-hack
run: cargo install cargo-hack

- name: All
working-directory: ./emitter/term
run: cargo test --all-features

- name: Powerset
working-directory: ./emitter/term
run: cargo hack test --feature-powerset --lib

- name: Minimal versions
working-directory: ./emitter/term
run: cargo hack test --feature-powerset --lib -Z minimal-versions
20 changes: 5 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
# Compiled files
*.o
*.so
*.rlib
*.dll

# Executables
*.exe

# Generated by Cargo
/target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
.idea
/target
Cargo.lock
*.orig
/wip
**/*.rs.bk
*.log
Loading

0 comments on commit 343295f

Please sign in to comment.