Skip to content

Deserializing Serde JSON AST to Program #7801

Answered by overlookmotel
shahryarjb asked this question in Q&A
Discussion options

You must be logged in to vote

No worries. Happy to help (except that I'm not being very helpful!)

I don't know anything about Elixir, but I think I understand what you're trying to do, and great that you're looking to port Oxc.

However, I'm sorry to say I don't think what you need is possible at present.

What you've suggested is likely the best approach - using serde to serialize/deserialize to a format (e.g. JSON) which is supported in both Rust and Erlang.

But problem is that it requires Deserialize to be implemented on AST types on Rust side. We will do that, but we are not in a position to do it yet. It's hard to do properly, and I'm afraid we would not want to accept a PR for a "partial" implementation, as then i…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@shahryarjb
Comment options

@overlookmotel
Comment options

Answer selected by shahryarjb
@overlookmotel
Comment options

@shahryarjb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants