Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/make ffi exportable #251

Merged
merged 3 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rustfst-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ default = ["rustfst-state-label-u32"]
rustfst-state-label-u32 = ["rustfst/state-label-u32"]

[lib]
crate-type = ["cdylib"]
crate-type = ["cdylib", "rlib"]

[dependencies]
anyhow = "1.0"
Expand Down
8 changes: 4 additions & 4 deletions rustfst-ffi/src/fst/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ impl<F: Fst<TropicalWeight> + 'static> BindableFst for F {
}

#[derive(RawPointerConverter)]
pub struct CFst(pub(crate) Box<dyn BindableFst>);
pub struct CFst(pub Box<dyn BindableFst>);

#[derive(RawPointerConverter)]
pub struct CVecFst(pub(crate) Box<VectorFst<TropicalWeight>>);
pub struct CVecFst(pub Box<VectorFst<TropicalWeight>>);

#[derive(RawPointerConverter)]
pub struct CConstFst(pub(crate) Box<ConstFst<TropicalWeight>>);
pub struct CConstFst(pub Box<ConstFst<TropicalWeight>>);

#[derive(RawPointerConverter)]
pub struct CConcatFst(pub(crate) Box<ConcatFst<TropicalWeight, VectorFst<TropicalWeight>>>);
pub struct CConcatFst(pub Box<ConcatFst<TropicalWeight, VectorFst<TropicalWeight>>>);

macro_rules! as_fst {
($typ:ty,$fst:ident) => {{
Expand Down
Loading