forked from maceip/litert-lm-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
49 lines (43 loc) · 1.01 KB
/
Copy pathCargo.toml
File metadata and controls
49 lines (43 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[package]
name = "litert-lm-rs"
version = "0.1.0"
edition = "2021"
authors = ["LiteRT-LM Contributors"]
description = "Rust bindings for LiteRT-LM C API - Engine, Session, and Conversation support"
license = "Apache-2.0"
repository = "https://github.com/maceip/litert-lm-rs"
include = [
"src/**/*",
"build.rs",
"Cargo.toml",
"README.md",
"LICENSE",
"examples/**/*",
"scripts/**/*",
]
[lib]
name = "litert_lm"
path = "src/lib.rs"
crate-type = ["lib", "staticlib", "cdylib"]
[dependencies]
[build-dependencies]
bindgen = "0.70"
[dev-dependencies]
[features]
default = []
# Link instructions for using this library:
#
# 1. Build the C API library first:
# bazel build //c:engine
#
# 2. The build.rs will automatically:
# - Run bindgen to generate FFI bindings from c/engine.h
# - Link against bazel-bin/c/libengine.so
#
# 3. Build the Rust wrapper:
# cargo build --release
#
# Usage in other Rust projects:
# Add to your Cargo.toml:
# [dependencies]
# litert-lm = { path = "../litert-lm/rust" }