Skip to content

Sails-RS v0.9.0

Choose a tag to compare

@vobradovich vobradovich released this 01 Aug 14:17
· 149 commits to master since this release

Bump up Gear crates to v1.9.0

What's New

  • BREAKING CHANGE: the #[export] attribute must be on all methods that should be accessible via message
  • BREAKING CHANGE: use #[sails_rs::event] macro to generate encoding code for event
  • BREAKING CHANGE: require impl Default trait on program with no ctors
  • Improved handling of sync methods without gstd async runtime
  • Changing approach of funcs implementations for services
    • Service methods defined in impl Service with #[sails_rs::service] are moved to Exposure and are no longer accessible directly via the Service type.
    • Exposure implement DerefMut<Target = Service> to allow transparent access to service internals.
    • Event emission (emit_event, emit_eth_event) is permitted only within Exposure methods. This removes the need for statically storing the service route, simplifying event emission logic.
    • Base services no longer need to implement Clone, an extended service must implement Into to destruct into base services
  • new Sails program generation via cargo sails new from precompiled template

What's Changed

  • chore(sails): display slice as hex w/o alloc by @vobradovich in #953
  • chore(sol-gen): rename _encodeReply argument into _callReply by @osipov-mit in #960
  • feat(js): skip types generation if it is not needed by @osipov-mit in #961
  • refactor: use gstd::message_loop only for async ctors and service methods by @techraed in #939
  • feat: introduce Builder to generate IDL and client from program by @vobradovich in #947
  • fix(sol-gen): generated filename starts with capital letter by @osipov-mit in #968
  • feat(client): support to send a message for query with gclient by @vobradovich in #952
  • fix: demo app gclient test by @techraed in #986
  • feat(js): capitalize enum variants, improve TransactionBuilder by @osipov-mit in #983
  • perf(macros): use #[sails_rs::event] macro to generate encoding code for event by @vobradovich in #954
  • feat: extend Syscalls with reply and signal details getters by @vobradovich in #982
  • refactoring(sails-macros-core): Remove clone from the program macro by @techraed in #989
  • feat: Changing approach of funcs implementations for services by @vobradovich in #984
  • chore(macros): require impl Default on program with no ctors by @vobradovich in #997
  • feat(cli): add new program generation and precompiled templates by @vobradovich in #993
  • refactor: do not send reply, if returned data is empty by @techraed in #1001
  • chore: bump gear crates to v1.9.0 by @breathx in #1006

Full Changelog: js/v0.4.2...rs/v0.9.0