Skip to content

Commit

Permalink
v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-wanna-M committed Sep 13, 2023
1 parent cb40bde commit bed9aa0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bnf_sampler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bnf_sampler"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "A crate that uses recursive descent algorithm to ensure tokens produced by a large language model follow a Backus Naur Form schema."
Expand Down
2 changes: 2 additions & 0 deletions bnf_sampler/src/sampler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ struct ConstU8SlicePtr(*const [u8]);

unsafe impl Send for ConstU8SlicePtr {}

unsafe impl Sync for ConstU8SlicePtr {}

impl ConstU8SlicePtr {
pub unsafe fn get(&self) -> &'static [u8] {
&*self.0
Expand Down

0 comments on commit bed9aa0

Please sign in to comment.