rune
rune copied to clipboard
0.14.0 migration guide?
trafficstars
It would be nice to have a migration guide / release notes highlights from 0.13 to 0.14. Perhaps as a post on the website blog?
So far I have found that:
- Matching on
Valueno longer works, you now need to useas_integer,borrow_string_refetc in a series of if-statements. - Constructing
Value::Integeretc directly no longer works, useFrom/Into. - I don't know how to replace matching on
rune::Value::Result(which was aShared<Result<Value, Value>>). Should I useValue::borrow_ref::<Result<Value, Value>>? Where does the outer shared go? - Debug and Display protocols have changed (
STRING_DEBUG->DEBUG_FMTandSTRING_DISPLAY->DISPLAY_FMT). I don't yet know if the expected signature has also changed. Sharedsmart pointer is gone. No replacement?
I don't know how to replace Shared in something like:
enum Selector {
/// Match all lines
#[rune(constructor)]
All,
// ...
#[rune(constructor)]
Function(#[rune(get)] Shared<rune::runtime::Function>),
}
- I don't know how to replace
Value::into_any.