From 0e68405ccd915ced77f314b0419e34a8e3e6231d Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 26 Mar 2023 13:37:38 -0700 Subject: [PATCH] Add our fast-float crate This adds a dependency on https://github.com/fish-shell/fast-float-rust which is our forked fast-float crate for parsing. --- fish-rust/Cargo.lock | 6 ++++++ fish-rust/Cargo.toml | 1 + 2 files changed, 7 insertions(+) diff --git a/fish-rust/Cargo.lock b/fish-rust/Cargo.lock index 0c8449a5e..0b49baf3f 100644 --- a/fish-rust/Cargo.lock +++ b/fish-rust/Cargo.lock @@ -347,6 +347,11 @@ dependencies = [ "libc", ] +[[package]] +name = "fast-float" +version = "0.2.0" +source = "git+https://github.com/fish-shell/fast-float-rust?branch=fish#9590c33a3f166a3533ba1cbb7a03e1105acec034" + [[package]] name = "fastrand" version = "1.9.0" @@ -367,6 +372,7 @@ dependencies = [ "cxx-build", "cxx-gen", "errno", + "fast-float", "inventory", "libc", "lru", diff --git a/fish-rust/Cargo.toml b/fish-rust/Cargo.toml index 29867c347..98d911ba6 100644 --- a/fish-rust/Cargo.toml +++ b/fish-rust/Cargo.toml @@ -7,6 +7,7 @@ rust-version = "1.67" [dependencies] widestring-suffix = { path = "./widestring-suffix/" } pcre2 = { git = "https://github.com/fish-shell/rust-pcre2", branch = "master", default-features = false, features = ["utf32"] } +fast-float = { git = "https://github.com/fish-shell/fast-float-rust", branch="fish" } autocxx = "0.23.1" bitflags = "1.3.2"