-
Notifications
You must be signed in to change notification settings - Fork 55
/
Cargo.toml
66 lines (61 loc) · 2.15 KB
/
Cargo.toml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[package]
name = "tflite"
version = "0.9.8"
authors = ["Boncheol Gu <[email protected]>"]
description = "Rust bindings for TensorFlow Lite"
keywords = ["tensorflow", "tflite", "bindings"]
license = "MIT/Apache-2.0"
repository = "https://github.com/boncheolgu/tflite-rs"
readme = "README.md"
edition = "2021"
documentation = "https://docs.rs/crate/tflite"
# filter in only necessary files
# tar tvaf target/package/tflite-*.crate | awk '{print $3 "\t" $6}' | sort -n
include = [
"build.rs",
"Cargo.toml",
"*.md",
"LICENSE-*",
"data/",
"csrc/",
"src/",
"submodules/downloads",
"submodules/tensorflow/tensorflow/lite/c",
"submodules/tensorflow/tensorflow/lite/core",
"submodules/tensorflow/tensorflow/lite/delegates/nnapi",
"submodules/tensorflow/tensorflow/lite/experimental/resource_variable",
"submodules/tensorflow/tensorflow/lite/experimental/ruy",
"submodules/tensorflow/tensorflow/lite/kernels",
"submodules/tensorflow/tensorflow/lite/nnapi",
"submodules/tensorflow/tensorflow/lite/profiling",
"submodules/tensorflow/tensorflow/lite/schema/schema_generated.h",
"submodules/tensorflow/tensorflow/lite/*.cc",
"submodules/tensorflow/tensorflow/lite/*.h",
"submodules/tensorflow/tensorflow/lite/tools/make",
"submodules/tensorflow/third_party/eigen3",
"submodules/tensorflow/third_party/fft2d",
"submodules/tensorflow/tensorflow/core/kernels/eigen_convolution_helpers.h",
"submodules/tensorflow/tensorflow/core/kernels/eigen_spatial_convolutions-inl.h",
"submodules/tensorflow/tensorflow/core/public/version.h",
]
[dependencies]
cpp = "0.5.7"
libc = "0.2.139"
maybe-owned = "0.3.4"
thiserror = "1.0.38"
[build-dependencies]
bart = { version = "0.1.6", optional = true }
bart_derive = { version = "0.1.6", optional = true }
bindgen = "0.69.4"
cpp_build = "0.5.7"
fs_extra = { version = "1.3.0", optional = true }
[features]
build = ["fs_extra"]
default = ["build"]
debug_tflite = ["build"] # use "libtensorflow-lite.a" built in debug mode
generate_model_apis = ["bart", "bart_derive"]
no_micro = ["build"]
[package.metadata.docs.rs]
all-features = false
no-default-features = true
default-target = "x86_64-unknown-linux-gnu"