Skip to content

Fix compound.rs build failure with luau/cfxlua and no serde - #364

Open
PY44N wants to merge 1 commit into
Kampfkarren:mainfrom
PY44N:fix/compound-serde-cfg-gate
Open

PY44N wants to merge 1 commit into
Kampfkarren:mainfrom
PY44N:fix/compound-serde-cfg-gate

Conversation

@PY44N

@PY44N PY44N commented Sep 4, 2026

Copy link
Copy Markdown

compound.rs unconditionally use serde::{Deserialize, Serialize}, unlike the other AST modules (mod.rs, lua52.rs, lua54.rs, span.rs, punctuated.rs), which all gate that import behind #[cfg(feature = "serde")]. Since serde is an optional dependency, this broke:

cargo build --no-default-features --features luau
cargo build --no-default-features --features cfxlua

with error[E0432]: unresolved import 'serde'.

@PY44N
PY44N force-pushed the fix/compound-serde-cfg-gate branch from 8bc8429 to 96a3984 Compare September 6, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant