Forward v8 feature to CLI.

This commit is contained in:
Sebastian Jeltsch 2025-09-25 10:07:43 +02:00
parent 6caf4e1a91
commit ca5d257182
6 changed files with 10 additions and 3 deletions

View file

@ -75,3 +75,4 @@ jobs:
- uses: pre-commit/action@v3.0.1
with:
extra_args: "--all-files --verbose"
- run: df -h

View file

@ -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" }

View file

@ -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; \

View file

@ -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, "..", "..", "..", "..");

View file

@ -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]

View file

@ -16,6 +16,9 @@ exclude = [
]
autobenches = false
[lib]
doctest = false
[[bench]]
name = "benchmark"
harness = false