feat(lib): support no_std

This commit is contained in:
DragonBillow 2024-05-30 16:05:30 +08:00 committed by ObserverOfTime
parent 1c7b518b9d
commit d13d7235d2
8 changed files with 101 additions and 94 deletions

View file

@ -1,3 +1,4 @@
#![no_std]
/// LanguageFn wraps a C function that returns a pointer to a tree-sitter grammer.
#[repr(transparent)]
pub struct LanguageFn(unsafe extern "C" fn() -> *const ());