mirror of
https://github.com/G2-Games/minidisc-cli.git
synced 2025-04-20 04:02:53 -05:00
Updated cargo.toml
for v0.1.0
release
This commit is contained in:
parent
a443453fad
commit
2b3712f1db
2 changed files with 17 additions and 22 deletions
37
Cargo.toml
37
Cargo.toml
|
@ -1,15 +1,20 @@
|
||||||
[package]
|
[package]
|
||||||
name = "minidisc_rs"
|
name = "minidisc_pc"
|
||||||
version = "0.0.1"
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
homepage = "https://github.com/G2-Games/minidisc-cli/"
|
homepage = "https://github.com/G2-Games/minidisc-cli/"
|
||||||
repository = "https://github.com/G2-Games/minidisc-cli/minidisc-rs/"
|
repository = "https://github.com/G2-Games/minidisc-cli/minidisc-rs/"
|
||||||
description = "An interface in rust to control NetMD and Hi-MD minidisc devices."
|
description = "A library for controlling and uploading data to NetMD and Hi-MD minidisc devices."
|
||||||
license-file = "LICENSE"
|
license-file = "LICENSE"
|
||||||
authors = ["G2 <g2@g2games.dev>"]
|
authors = ["G2 <ke0bhogsg@gmail.com>"]
|
||||||
edition = "2021"
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# Have docs.rs make documentation for most supported targets
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
targets = ["x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "aarch64-pc-windows-msvc", "x86_64-apple-darwin", "aarch64-apple-darwin", "wasm32-unknown-unknown"]
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
crate-type = ["cdylib", "rlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
diacritics = "0.2.0"
|
diacritics = "0.2.0"
|
||||||
|
@ -17,29 +22,21 @@ encoding_rs = "0.8.33"
|
||||||
nofmt = "1.0.0"
|
nofmt = "1.0.0"
|
||||||
once_cell = "1.18.0"
|
once_cell = "1.18.0"
|
||||||
unicode-normalization = "0.1.22"
|
unicode-normalization = "0.1.22"
|
||||||
hex = "0.4.3"
|
|
||||||
regex = "1.10.2"
|
regex = "1.10.2"
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
cross_usb = "0.2"
|
cross_usb = "0.2"
|
||||||
num-derive = "0.3.3"
|
num-derive = "0.3.3"
|
||||||
num-traits = "0.2.14"
|
num-traits = "0.2.14"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
getrandom = { version = "0.2.12", features = ["js"] }
|
getrandom = { version = "0.2", features = ["js"] }
|
||||||
des = "0.8.1"
|
des = "0.8"
|
||||||
cbc = "0.1.2"
|
cbc = "0.1"
|
||||||
ecb = "0.1.2"
|
ecb = "0.1"
|
||||||
tokio = { version = "1.35.1", features = ["sync"] }
|
tokio = { version = "1.36", features = ["sync"] }
|
||||||
|
unicode-jp = { git = "https://github.com/uzabase/unicode-jp-rs.git" }
|
||||||
[dependencies.unicode-jp]
|
|
||||||
# Relying on this fork for now as it has up-to-date deps
|
|
||||||
git = "https://github.com/uzabase/unicode-jp-rs.git"
|
|
||||||
|
|
||||||
[target.'cfg(target_family = "wasm")'.dependencies]
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
||||||
web-sys = { version = "0.3", features = ["console"] }
|
|
||||||
gloo = { version = "0.11.0", features = ["futures"] }
|
gloo = { version = "0.11.0", features = ["futures"] }
|
||||||
|
|
||||||
[lib]
|
|
||||||
crate-type = ["cdylib", "rlib"]
|
|
||||||
|
|
||||||
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
|
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
|
||||||
dwarf-debug-info = true
|
dwarf-debug-info = true
|
||||||
|
|
|
@ -5,12 +5,10 @@ use std::error::Error;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
// USB stuff
|
// USB stuff
|
||||||
//use nusb::transfer::{Control, ControlIn, ControlOut, ControlType, Recipient, RequestBuffer};
|
|
||||||
use cross_usb::usb::{ControlIn, ControlOut, ControlType, Device, Interface, Recipient};
|
use cross_usb::usb::{ControlIn, ControlOut, ControlType, Device, Interface, Recipient};
|
||||||
use cross_usb::{UsbDevice, UsbInterface};
|
use cross_usb::{UsbDevice, UsbInterface};
|
||||||
|
|
||||||
use super::utils::cross_sleep;
|
use super::utils::cross_sleep;
|
||||||
//use nusb::{Device, DeviceInfo, Interface};
|
|
||||||
|
|
||||||
const DEFAULT_TIMEOUT: Duration = Duration::new(10000, 0);
|
const DEFAULT_TIMEOUT: Duration = Duration::new(10000, 0);
|
||||||
const BULK_WRITE_ENDPOINT: u8 = 0x02;
|
const BULK_WRITE_ENDPOINT: u8 = 0x02;
|
||||||
|
|
Loading…
Reference in a new issue