Explorar el Código

Preprations for crates.io release

David Peter hace 2 años
padre
commit
1dea49d18c
Se han modificado 4 ficheros con 18 adiciones y 3 borrados
  1. 1 1
      Cargo.lock
  2. 5 0
      Cargo.toml
  3. 5 0
      numbat-exchange-rates/Cargo.toml
  4. 7 2
      numbat/Cargo.toml

+ 1 - 1
Cargo.lock

@@ -866,7 +866,7 @@ dependencies = [
 
 [[package]]
 name = "numbat"
-version = "0.1.0"
+version = "1.5.0"
 dependencies = [
  "approx",
  "codespan-reporting",

+ 5 - 0
Cargo.toml

@@ -10,3 +10,8 @@ members = [
 exclude = [
     "numbat-wasm"
 ]
+
+[profile.release]
+lto = true
+strip = true
+codegen-units = 1

+ 5 - 0
numbat-exchange-rates/Cargo.toml

@@ -1,7 +1,12 @@
 [package]
+authors = ["David Peter <[email protected]>"]
 name = "numbat-exchange-rates"
 version = "0.1.0"
+description = "A library to fetch and parse currency exchange rates from the ECB"
 edition = "2021"
+homepage = "https://numbat.dev/"
+repository = "https://github.com/sharkdp/numbat"
+license = "MIT/Apache-2.0"
 
 [dependencies]
 quick-xml = "0.29.0"

+ 7 - 2
numbat/Cargo.toml

@@ -2,8 +2,13 @@
 name = "numbat"
 description = "A high precision scientific calculator with full support for physical units."
 authors = ["David Peter <[email protected]>"]
-version = "0.1.0"
+categories = ["science", "mathematics", "parser-implementations"]
+version = "1.5.0"
 edition = "2021"
+homepage = "https://numbat.dev/"
+repository = "https://github.com/sharkdp/numbat"
+license = "MIT/Apache-2.0"
+readme = "README.md"
 
 [dependencies]
 thiserror = "1"
@@ -13,7 +18,7 @@ num-traits = "0.2"
 codespan-reporting = "0.11"
 strsim = "0.10.0"
 pretty_dtoa = "0.3"
-numbat-exchange-rates = { path = "../numbat-exchange-rates" }
+numbat-exchange-rates = { version = "0.1.0", path = "../numbat-exchange-rates" }
 
 [dev-dependencies]
 approx = "0.5"