You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't compile due to bug in dependency deno_ast=0.49.0 #409
rustyscript v0.12.3 fails to build, giving a serde::__private import error. The issue is caused by a breaking change in serde that found itself upstream to deno_ast v0.49.0 which is the version pinned by rustyscript in its Cargo.toml.
Error:
error[E0432]: unresolved import `serde::__private`
--> swc_config-3.0.0\src\types\bool_or_data.rs:128:20
|
128 | use serde::__private::de;
| ^^^^^^^^^ could not find `__private` in `serde`
To Reproduce
Tested on both Windows and Ubuntu (via WSL2). Steps to reproduce the behavior:
Create a new Rust project: cargo new test-rustyscript && cd test-rustyscript
changed the title [-]Can't compile due to bug in transitive dependency `deno_ast=0.49.0`[/-][+]Can't compile due to bug in dependency `deno_ast=0.49.0`[/+]on Nov 14, 2025
@ozaner does it only compile, or have you tested it? if it is more or less usable after updating deno_ast to 0.50 (which is still outdated), we could just fork it until rustyscript has settled to a newer working combination of dependencies.
Activity
[-]Can't compile due to bug in transitive dependency `deno_ast=0.49.0`[/-][+]Can't compile due to bug in dependency `deno_ast=0.49.0`[/+]utyfua commentedon Nov 14, 2025
Dublicate of #399
I'm waiting for the new deno version with deno_core v0.363.0 or higher before submitting a PR.
eirikb commentedon Dec 4, 2025
FWIW, to build with web feature, also add deno_media_type = "=0.2.1" and use serde = "=1.0.215" instead of 1.0.219...
ayushjain17 commentedon Jan 18, 2026
is someone still looking to fix this ?
@utyfua deno_core has released v0.380.0
Remigius2011 commentedon Feb 15, 2026
deno_core = "0.385.0", as of now. but our experiments have shown that deno is nowadays not very integration friendly.
Remigius2011 commentedon Feb 15, 2026
@ozaner does it only compile, or have you tested it? if it is more or less usable after updating deno_ast to 0.50 (which is still outdated), we could just fork it until rustyscript has settled to a newer working combination of dependencies.
utyfua commentedon Feb 15, 2026
@Remigius2011 You can try to use unreleased version