-
Notifications
You must be signed in to change notification settings - Fork 22
/
Cargo.toml
39 lines (32 loc) · 1.38 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
[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.3", default-features=false, features = ["std"]}
rusb = { version = "0.9.2", optional = true }
serialport = { version = "4.2", optional = true }
tinyjson = { version = "2.5.1", optional = true }
[target.'cfg(target_os = "android")'.dependencies]
hidapi = { version = "2.4.1", default-features=false, features = [ "linux-static-libusb" ], optional = true }
[target.'cfg(not(target_os = "android"))'.dependencies]
hidapi = { version = "2.4.1", optional = true }
[dev-dependencies]
clap = { version = "4.3", features = ["derive"] }
opencv = { version = "0.84.2", default-features = false, features = ["highgui", "imgproc", "calib3d"] }