refactor(estree): make itoa dependency optional (#9338)

Make `itoa` dependency of `oxc_estree` optional. It's only required if `serialize` feature is enabled.

(as pointed out in https://github.com/oxc-project/oxc/pull/9331#issuecomment-2678713071, we want to avoid `oxc_ast` crate having unnecessary dependencies)
This commit is contained in:
overlookmotel committed 2025-02-25 04:39:33 +00:00
1 parent f21740e26f
commit 2faabe1491
1 file changed
+2 -2
+2 -2
View File
@@ -19,9 +19,9 @@ workspace = true
doctest = false
[dependencies]
itoa = { workspace = true }
itoa = { workspace = true, optional = true }
ryu-js = { workspace = true, optional = true }
[features]
default = []
serialize = ["dep:ryu-js"]
serialize = ["dep:itoa", "dep:ryu-js"]