You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING: Make JanetGc::collect an unsafe function
BREAKING: Remove JanetEnvironment::add_def_with_doc, JanetEnvironment::add_var_with_doc, JanetEnvironment::add_c_func_with_doc
and JanetClient functions with the same names
BREAKING: Rename JanetEnviornment::add_c_func to JanetEnvironment::add_c_fnJanetEnvironment::add_c_fn
Add JanetFile type
Add JanetRng type
Add JanetTable::try_insert and related error type
Add DefOptions, VarOptions, CFunOptions to interact with the Janet
environment
Add declare_janet_mod macro to generate the machinery that Janet requires do
create a Janet native module
It satisfies the same purpose as janet_mod, but it can get the
documentation string from the function doc-comments and, for Janet versions
above 1.17.0, it also add source map information for Janet
Add janet_abstract::register function to register an abstract type.
Add option to janet_fn attribute macro to include arity checks
Add Janet::unwrap_or, Janet::unwrap_or_else and Janet::unwrap_or_default
Implement Display for TaggedJanet and defer the Janet display
implementation to that
Refactor the janet_fn attribute macro parameter parsing
Refactor the JanetEnvironment and JanetClient API
janet_fn now emits code with the function documentation and source map
information as constants to be used by another macro declare_janet_mod
FIxes
Improve error report of attribute macros
Fix compilation when no_std and with unicode feature enabled
This discussion was created from the release v0.4.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Changes
JanetGc::collect
an unsafe functionJanetEnvironment::add_def_with_doc
,JanetEnvironment::add_var_with_doc
,JanetEnvironment::add_c_func_with_doc
and
JanetClient
functions with the same namesutil::def
,util::var
,util::c_func
JanetEnviornment::add_c_func
toJanetEnvironment::add_c_fn
JanetEnvironment::add_c_fn
JanetFile
typeJanetRng
typeJanetTable::try_insert
and related error typeDefOptions
,VarOptions
,CFunOptions
to interact with the Janetenvironment
declare_janet_mod
macro to generate the machinery that Janet requires docreate a Janet native module
janet_mod
, but it can get thedocumentation string from the function doc-comments and, for Janet versions
above 1.17.0, it also add source map information for Janet
janet_abstract::register
function to register an abstract type.janet_fn
attribute macro to include arity checksJanet::unwrap_or
,Janet::unwrap_or_else
andJanet::unwrap_or_default
Display
forTaggedJanet
and defer theJanet
displayimplementation to that
janet_fn
attribute macro parameter parsingJanetEnvironment
andJanetClient
APIjanet_fn
now emits code with the function documentation and source mapinformation as constants to be used by another macro
declare_janet_mod
FIxes
This discussion was created from the release v0.4.0.
Beta Was this translation helpful? Give feedback.
All reactions