Clemens Winter
Clemens Winter
Another hitch I haven't figured out yet is that the serde `serialize_struct` method expects a `name: &'static str` which makes it unusable for `Value::Struct` variants with dynamic names: https://github.com/serde-rs/serde/issues/2043
I suppose it's easy enough to adapt the `Serialize::serialize` implementation to take a concrete `ron::ser::Serializer` which can actually have a more permissive lifetime and call that in `to_string`/`to_pretty_string`. It does...
Hmm ok actually a little more involved because of the recursion on the `Compound`s. Seems pretty manageable but not sure yet what the right approach is.
Ok I think I got it. Keeping`Value` `Serialize` seems important if you wanted to e.g. convert ron to yaml, but we can still keep the existing implementation and just serialize...
Well, I got it working but since `to_string` is fully generic we can't actually do something custom for `Value`, so the only option I see is to have a separate...
So I did get this to work and am using it in https://github.com/cswinter/pyron to (de)serialize Python dataclasses as ron, but there are still some issues with this that I'm not...
For now, my main use case for this is https://github.com/cswinter/pyron, which doesn't use ron in a way that would run into the remaining issues. I would like to fix this...
Cargo doesn't seem to make any mention of it: ```{"reason":"compiler-artifact","package_id":"python_cffi 0.1.0 (path+file:///Users/clemens/openai/python-rust-cffi)","target":{"kind":["cdylib"],"crate_types":["cdylib"],"name":"python_cffi","src_path":"/Users/clemens/openai/python-rust-cffi/src/lib.rs","edition":"2018","doctest":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/clemens/openai/python-rust-cffi/target/debug/libpython_cffi.dylib"],"executable":null,"fresh":false}```
Ah good to know! I tried setting `PYO3_PYTHON` both when building manually and in `rust-analyzer.server.extraEnv` but that doesn't seem to have done the trick yet. I think I'll just remove...
This would be nice to have! I'm not planning to add any new features currently, but at least there's a [`showText`](http://codecraftgame.org/docs/api/index.html#cwinter.codecraft.core.api.JDroneController@showText(text:String):Unit) method you can use to display any text on...