Skip to content

Commit

Permalink
refactor: share V8 isolate between plugins (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
w-henderson authored Jan 25, 2024
1 parent 3886551 commit 2e162e2
Show file tree
Hide file tree
Showing 13 changed files with 208 additions and 144 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
command: check
args: -p stuart

- name: Run cargo check --all-features
uses: actions-rs/cargo@v1
with:
command: check
args: -p stuart --all-features

test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -46,4 +52,10 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: -p stuart
args: -p stuart

- name: Run cargo test --all-features
uses: actions-rs/cargo@v1
with:
command: test
args: -p stuart --all-features
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GLIBC must be statically linked in order for Stuart to run on Cloudflare Pages.
# This script will build a statically linked binary of Stuart suitable for this use case.

RUSTFLAGS="-C target-feature=+crt-static" cargo build --release --target x86_64-unknown-linux-gnu
RUSTFLAGS="-C target-feature=+crt-static" cargo build --release --target x86_64-unknown-linux-gnu --all-features
2 changes: 1 addition & 1 deletion stuart-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stuart_core"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
license = "MIT"
homepage = "https://github.com/w-henderson/Stuart"
Expand Down
4 changes: 2 additions & 2 deletions stuart/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stuart"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
license = "MIT"
homepage = "https://github.com/w-henderson/Stuart"
Expand All @@ -15,7 +15,7 @@ name = "stuart"
path = "src/main.rs"

[dependencies]
stuart_core = { version = "^0.3.0", path = "../stuart-core" }
stuart_core = { version = "^0.3.1", path = "../stuart-core" }

clap = "^3.2"
toml = "^0.5"
Expand Down
Loading

0 comments on commit 2e162e2

Please sign in to comment.