siku2 / rust-monaco

Rust WASM bindings for the Monaco Editor
Apache License 2.0
77 stars 25 forks source link

Github - Crates.io disparity? #42

Closed PawelPerek closed 1 year ago

PawelPerek commented 1 year ago

Hi there, I'm trying to integrate monaco into my leptos project and so far API impressions were excellent, but lately I found a weird disparity. I would like to use automatic_layout feature, so the editor would automatically fit the parent container and I see that on Github there is a CodeEditorOptions::automatic_layout field (https://github.com/siku2/rust-monaco/blob/master/src/api/editor.rs), but weirdly enough when I pull it from crates.io, the CodeEditorOptions has all the fields besides this one. I see that entry in docs.rs also doesn't list this field as an option https://docs.rs/monaco/0.3.0/monaco/api/struct.CodeEditorOptions.html. It's a weird disparity since both github and crates.io variants has 0.3.0 version identifier.

siku2 commented 1 year ago

See #36, which should now finally be fixed :)