From c935236d68a6908d94ade47a4d1ab38416ae6df3 Mon Sep 17 00:00:00 2001 From: occheung Date: Wed, 23 Sep 2020 12:30:26 +0800 Subject: [PATCH] cargo: remove uom --- Cargo.lock | 16 ++-------------- Cargo.toml | 12 ++---------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e32c0a3..1f3ba6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -250,7 +250,6 @@ dependencies = [ "scpi", "smoltcp", "stm32h7xx-hal", - "uom 0.29.0", ] [[package]] @@ -619,7 +618,7 @@ dependencies = [ "lexical-core", "libm", "scpi_derive", - "uom 0.28.0", + "uom", ] [[package]] @@ -680,8 +679,7 @@ dependencies = [ [[package]] name = "smoltcp" version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fe46639fd2ec79eadf8fe719f237a7a0bd4dac5d957f1ca5bbdbc1c3c39e53a" +source = "git+https://github.com/smoltcp-rs/smoltcp.git#bdfa44270e9c59b3095b555cdf14601f7dc27794" dependencies = [ "bitflags", "byteorder", @@ -798,16 +796,6 @@ dependencies = [ "typenum", ] -[[package]] -name = "uom" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bb593f5252356bfb829112f8fca2d0982d48588d2d6bb5a92553b0dfc4c9aba" -dependencies = [ - "num-traits", - "typenum", -] - [[package]] name = "url" version = "2.1.1" diff --git a/Cargo.toml b/Cargo.toml index 104593e..7c06b86 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,16 +33,8 @@ branch = "issue-4" default-features = false features = [ "build-info", "unit-frequency", "unit-angle" ] -[dependencies.uom] -version = "0.29.0" -default-features = false -features = [ "autoconvert", "f32", "f64", "si" ] - -# Use below SCPI dependency when need to modify SCPI fork offline -# [dependencies.scpi] -# path = "../scpi-fork/scpi" -# default-features = false -# features = [ "build-info", "unit-frequency" ] +[patch.crates-io] +smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp.git" } [[example]] name = "ethernet"