-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
46 lines (38 loc) · 1.53 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
[package]
name = "ar-drivers"
description = "Opensource driver for Rokid, Nreal and some other AR glasses"
version = "0.4.3"
edition = "2021"
authors = ["Alex Badics <admin@stickman.hu>"]
repository = "https://github.com/badicsalex/ar-drivers-rs"
documentation = "https://docs.rs/ar-drivers"
keywords = ["rokid", "ar"]
categories = ["hardware-support"]
license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["mad_gaze", "rokid", "nreal", "grawoow"]
grawoow = ["rusb", "tinyjson", "bytemuck"]
mad_gaze = ["serialport"]
nreal = ["hidapi", "tinyjson", "bytemuck"]
rokid = ["rusb"]
[dependencies]
bytemuck = { version = "1.13.1", optional = true }
byteorder = "1.4"
nalgebra = { version = "0.32.5", default-features = false, features = ["std"] }
rand = "0.8.5"
rusb = { version = "0.9.2", optional = true }
serialport = { version = "4.2", optional = true }
tinyjson = { version = "2.5.1", optional = true }
#imu-fusion = { version = "0.2.1" }
#eskf = { version = "0.2.0" }
#yakf = { version = "0.1.12" }
[target.'cfg(target_os = "android")'.dependencies]
hidapi = { version = "2.6.1", default-features = false, features = ["linux-static-libusb"], optional = true }
[target.'cfg(not(target_os = "android"))'.dependencies]
hidapi = { version = "2.6.1", optional = true }
[dev-dependencies]
clap = { version = "4.3", features = ["derive"] }
#opencv = { version = "0.84.2", default-features = false, features = ["highgui", "imgproc", "calib3d"] }
[lib]
crate-type = ["cdylib", "rlib"]