From 2b3712f1db1cf2eceafcf7a1e25eb9b5aeef3248 Mon Sep 17 00:00:00 2001 From: G2-Games Date: Sun, 10 Mar 2024 04:16:12 -0500 Subject: [PATCH] Updated `cargo.toml` for `v0.1.0` release --- Cargo.toml | 37 +++++++++++++++++-------------------- src/netmd/base.rs | 2 -- 2 files changed, 17 insertions(+), 22 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5ea1d68..4a4956e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,20 @@ [package] -name = "minidisc_rs" -version = "0.0.1" +name = "minidisc_pc" +version = "0.1.0" +edition = "2021" homepage = "https://github.com/G2-Games/minidisc-cli/" 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" -authors = ["G2 "] -edition = "2021" +authors = ["G2 "] 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] diacritics = "0.2.0" @@ -17,29 +22,21 @@ encoding_rs = "0.8.33" nofmt = "1.0.0" once_cell = "1.18.0" unicode-normalization = "0.1.22" -hex = "0.4.3" regex = "1.10.2" lazy_static = "1.4.0" cross_usb = "0.2" num-derive = "0.3.3" num-traits = "0.2.14" rand = "0.8.5" -getrandom = { version = "0.2.12", features = ["js"] } -des = "0.8.1" -cbc = "0.1.2" -ecb = "0.1.2" -tokio = { version = "1.35.1", features = ["sync"] } - -[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" +getrandom = { version = "0.2", features = ["js"] } +des = "0.8" +cbc = "0.1" +ecb = "0.1" +tokio = { version = "1.36", features = ["sync"] } +unicode-jp = { git = "https://github.com/uzabase/unicode-jp-rs.git" } [target.'cfg(target_family = "wasm")'.dependencies] -web-sys = { version = "0.3", features = ["console"] } gloo = { version = "0.11.0", features = ["futures"] } -[lib] -crate-type = ["cdylib", "rlib"] - [package.metadata.wasm-pack.profile.dev.wasm-bindgen] dwarf-debug-info = true diff --git a/src/netmd/base.rs b/src/netmd/base.rs index c4a2e4b..7a26e63 100644 --- a/src/netmd/base.rs +++ b/src/netmd/base.rs @@ -5,12 +5,10 @@ use std::error::Error; use std::time::Duration; // USB stuff -//use nusb::transfer::{Control, ControlIn, ControlOut, ControlType, Recipient, RequestBuffer}; use cross_usb::usb::{ControlIn, ControlOut, ControlType, Device, Interface, Recipient}; use cross_usb::{UsbDevice, UsbInterface}; use super::utils::cross_sleep; -//use nusb::{Device, DeviceInfo, Interface}; const DEFAULT_TIMEOUT: Duration = Duration::new(10000, 0); const BULK_WRITE_ENDPOINT: u8 = 0x02;