From ca5d2571826bd23ca4b97beee57dd3f20f40c126 Mon Sep 17 00:00:00 2001 From: Sebastian Jeltsch Date: Thu, 25 Sep 2025 10:07:43 +0200 Subject: [PATCH] Forward v8 feature to CLI. --- .github/workflows/test.yml | 1 + Cargo.toml | 2 +- Makefile | 2 +- crates/assets/js/client/tests/integration_test_runner.ts | 2 +- crates/cli/Cargo.toml | 3 +++ crates/core/Cargo.toml | 3 +++ 6 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4b7c89cf..cf038278 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,3 +75,4 @@ jobs: - uses: pre-commit/action@v3.0.1 with: extra_args: "--all-files --verbose" + - run: df -h diff --git a/Cargo.toml b/Cargo.toml index 100a2527..fb617e18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,7 +83,7 @@ rust-embed = { version = "8.4.0", default-features = false, features = ["mime-gu tokio = { version = "^1.38.0", default-features = false, features = ["macros", "net", "rt-multi-thread", "fs", "signal", "time", "sync"] } tracing = { version = "0.1.40", default-features = false } tracing-subscriber = { version = "0.3.18", default-features = false, features = ["smallvec", "std", "fmt", "json"] } -trailbase = { path = "crates/core", version = "0.2.0" } +trailbase = { path = "crates/core", version = "0.2.0", default-features = false, features=["wasm"] } trailbase-assets = { path = "crates/assets", version = "0.2.0" } trailbase-build = { path = "crates/build", version = "0.1.1" } trailbase-client = { path = "crates/client", version = "0.5.0" } diff --git a/Makefile b/Makefile index 80583cfb..5266f0db 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ format: dotnet format client/dotnet/test; \ poetry -C client/python run black --config pyproject.toml .; \ swift format -r -i client/swift/trailbase/**/*.swift; \ - gofmt -w **/*.go; + gofmt -w client/go/trailbase; check: pnpm -r check; \ diff --git a/crates/assets/js/client/tests/integration_test_runner.ts b/crates/assets/js/client/tests/integration_test_runner.ts index 6a52abd5..ac4948e7 100644 --- a/crates/assets/js/client/tests/integration_test_runner.ts +++ b/crates/assets/js/client/tests/integration_test_runner.ts @@ -12,7 +12,7 @@ const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); async function initTrailBase(): Promise<{ subprocess: Subprocess }> { const pwd = cwd(); if (!pwd.endsWith("client")) { - throw Error(`Unxpected CWD: ${pwd}`); + throw Error(`Unexpected CWD: ${pwd}`); } const root = join(pwd, "..", "..", "..", ".."); diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 736875dc..1af2926b 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -12,6 +12,9 @@ doctest = false name = "trail" [features] +default = ["v8"] +# Conditionally enable "v8" feature of dep:trailbase. +v8 = ["trailbase/v8"] swagger = ["dep:utoipa-swagger-ui"] [dependencies] diff --git a/crates/core/Cargo.toml b/crates/core/Cargo.toml index c5f5151a..3a740e81 100644 --- a/crates/core/Cargo.toml +++ b/crates/core/Cargo.toml @@ -16,6 +16,9 @@ exclude = [ ] autobenches = false +[lib] +doctest = false + [[bench]] name = "benchmark" harness = false