Skip to content

Commit b757e86

Browse files
authored
initial implementation (#1)
* initial implementation * some support for named function expressions * testing overhaul * add support for class methods also: * put the "this" in the context object as "self" * check if we already added the tracing channel import before adding it again * clippy and fmt * move out tests * move all the JS to local files * pr review * de-parameterize the yaml * remove unused type param * support object methods * support for 'use_strict' * de-unwrap * add support for selecting DC module * keep track of which modules/scripts have the import via a HashSet * combine instrumentations into one visitor * cleanup and update deps * remove wasm stuff since that will be done by dependents * lint, clippy, and pr review * gh actions * add OrchestrionError enum
1 parent 66397dd commit b757e86

38 files changed

+4801
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
on: [push]
3+
env:
4+
CARGO_TERM_COLOR: always
5+
RUST_VERSION: 1.84.1
6+
jobs:
7+
test:
8+
name: Test & Lint
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Install Rust ${{ env.RUST_VERSION }}
14+
run: rustup toolchain install ${{ env.RUST_VERSION }} --component clippy --component rustfmt && rustup default ${{ env.RUST_VERSION }}
15+
- name: Cache
16+
uses: Swatinem/rust-cache@v2
17+
- name: Build
18+
run: cargo build --all
19+
- name: Run tests
20+
run: cargo test --all
21+
- name: Run clippy
22+
run: cargo clippy --all -- -D warnings
23+
- name: Run fmt
24+
run: cargo fmt --all -- --check

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/target
2+
^target/
3+
target
4+
tests/*/instrumented.*

0 commit comments

Comments
 (0)