Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,25 @@ jobs:
- name: Test
run: cargo test --workspace --all-features --locked

features:
name: Features
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cache Cargo
uses: Swatinem/rust-cache@v2

- name: Check each feature alone
run: |
for feature in token ast template fmt diagnostic build macros derives serde proc-macro2 visit quote; do
cargo check -p moxy --no-default-features --features "$feature" --locked
done

lint:
name: Lint
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ workspace = true
default = ["ast", "token"]
derives = ["moxy-ast?/derives", "moxy-template?/derives"]
full = ["ast", "token", "build", "fmt", "template", "macros", "derives", "diagnostic", "serde", "proc-macro2", "visit"]
ast = ["dep:moxy-ast"]
ast = ["dep:moxy-ast", "token"]
build = ["dep:moxy-build"]
fmt = ["dep:moxy-fmt"]
fmt = ["dep:moxy-fmt", "ast"]
token = ["dep:moxy-token"]
template = ["dep:moxy-template"]
template = ["dep:moxy-template", "token"]
macros = ["dep:moxy-macros"]
diagnostic = ["dep:moxy-diagnostic"]
serde = ["moxy-ast?/serde", "moxy-token?/serde", "moxy-fmt?/serde"]
proc-macro2 = ["moxy-token?/proc-macro2"]
proc-macro2 = ["token", "moxy-token/proc-macro2"]
visit = ["moxy-ast?/visit"]
quote = ["moxy-token?/quote", "proc-macro2"]
quote = ["proc-macro2", "moxy-token/quote"]

[dependencies]
moxy-ast = { workspace = true, optional = true }
Expand Down