Skip to content

0.3.0

Compare
Choose a tag to compare
@GrayJack GrayJack released this 02 Jun 03:11
· 244 commits to dev since this release
d3aac31

Changes

  • BREAKING: Rename as_ptr_mut to as_mut_ptr
  • BREAKING: Rename as_raw_mut to as_mut_raw
  • BREAKING: JanetAbstract::new now takes a value
  • BREAKING: Make the janetrs::types module private and export everything inside it in the upper module
  • BREAKING: Modify From<&str> for Janet to return a Janet keyword if &str starts with :
  • BREAKING: Modify CallError::stacktrace function.
  • Add ability to change some Janet behavior using the amalgation feature using environment variables
  • Add DeepEq trait
  • Add dedup, dedup_by and dedup_by_key for JanetArray
  • Add get_unchecked and get_unchecked_mut for JanetArray
  • Add get_unchecked for JanetTuple
  • Add get_method and has_method to Janet
  • Add prototype, set_prototype and with_prototype methods for JanetTable
  • Add get_key_value_proto{_mut} and get_proto{_mut} methods for JanetTable
  • Add JanetGc and JanetGcLockGuard types to access some Janet GC operations
  • Add JanetGcRootGuard and the functions JanetGc::root and JanetGc::unroot to root a Janet object to the GC
  • Add functions to get reference to a JanetAbstract data safely
  • Add JanetAbstract::is
  • Add Janet::int64
  • Add Janet::uint64
  • Create janetrs_version crate to use as common code used by janet_version macro and janetrs::util module
  • Implement DeepEq for most types
  • Implement Debug and Display for JanetSymbol
  • Implement Debug and Display for JanetKeyword
  • Implement IsJanetAbstract for i64 and u64
  • Implement PartialEq, Eq, PartialOrd and Ord for JanetAbstract
  • Implement PartialEq, Eq, PartialOrd and Ord for JanetFunction
  • Implement PartialOrd and Ord for JanetFiber
  • Implement From and TryFrom between i64 and Janet
  • Implement From and TryFrom between u64 and Janet
  • Include "@" before the debug representation of Janet mutable types
  • Refactor Debug implementation of Janet type
  • Refactor Display implementation of Janet type
  • Refactor some implementations of From and TryFrom related to Janet type
  • Reduce code duplication in JanetAbstract functions

Fixes

  • BREAKING: Change definition of IsJanetAbstract trait
  • Expose jcatch! macro only if Janet version supports the underlying mechanism
  • Fix some clippy lints
  • Fix compilation on no_std environment.
  • Make some functions const if using a recent enough Rust version