Skip to content

Why do we use Rust nightly? #384

Answered by tantaman
tantaman asked this question in Q&A
Discussion options

You must be logged in to vote

When attempting to go back to stable we had these features being used which required nightly:

#![feature(concat_idents)]

This is a nightly feature that is needed in our SQLite API bindings so we can create a macro that invokes SQLite. A macro is used since the calling behavior is different depending on if we're compiling as a loadable extension or statically linking into SQLite.

As a loadable extension we must call sqlite_api->method, as a static thing we must call method directly.

#![feature(core_intrinsics)]

core_intrinsics is required to abort on panic in WASM.

#![feature(lang_items)]

lang_items so we can set the exception handling personality. WASM doesn't support exceptions so we …

Replies: 1 comment

Comment options

tantaman
Oct 11, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by tantaman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant