mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-03 15:55:45 +00:00
Update itoa and dirs (#1601)
This commit is contained in:
parent
beb2100f29
commit
fca866d0bc
16
Cargo.lock
generated
16
Cargo.lock
generated
@ -664,7 +664,7 @@ checksum = "22813a6dc45b335f9bade10bf7271dc477e81113e89eb251a0bc2a8a81c536e1"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"bstr",
|
"bstr",
|
||||||
"csv-core",
|
"csv-core",
|
||||||
"itoa",
|
"itoa 0.4.7",
|
||||||
"ryu",
|
"ryu",
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
@ -715,9 +715,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dirs"
|
name = "dirs"
|
||||||
version = "3.0.2"
|
version = "4.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "30baa043103c9d0c2a57cf537cc2f35623889dc0d405e6c3cccfadbc81c71309"
|
checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dirs-sys",
|
"dirs-sys",
|
||||||
]
|
]
|
||||||
@ -1189,6 +1189,12 @@ version = "0.4.7"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736"
|
checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "itoa"
|
||||||
|
version = "1.0.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jobserver"
|
name = "jobserver"
|
||||||
version = "0.1.22"
|
version = "0.1.22"
|
||||||
@ -2266,7 +2272,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79"
|
checksum = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"indexmap",
|
"indexmap",
|
||||||
"itoa",
|
"itoa 0.4.7",
|
||||||
"ryu",
|
"ryu",
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
@ -2461,7 +2467,7 @@ dependencies = [
|
|||||||
"hmac",
|
"hmac",
|
||||||
"indexmap",
|
"indexmap",
|
||||||
"ipnetwork",
|
"ipnetwork",
|
||||||
"itoa",
|
"itoa 1.0.1",
|
||||||
"libc",
|
"libc",
|
||||||
"libsqlite3-sys",
|
"libsqlite3-sys",
|
||||||
"log",
|
"log",
|
||||||
|
@ -115,7 +115,7 @@ crossbeam-queue = "0.3.1"
|
|||||||
crossbeam-channel = "0.5.0"
|
crossbeam-channel = "0.5.0"
|
||||||
crossbeam-utils = { version = "0.8.1", default-features = false }
|
crossbeam-utils = { version = "0.8.1", default-features = false }
|
||||||
digest = { version = "0.9.0", default-features = false, optional = true, features = ["std"] }
|
digest = { version = "0.9.0", default-features = false, optional = true, features = ["std"] }
|
||||||
dirs = { version = "3.0.1", optional = true }
|
dirs = { version = "4", optional = true }
|
||||||
encoding_rs = { version = "0.8.23", optional = true }
|
encoding_rs = { version = "0.8.23", optional = true }
|
||||||
either = "1.5.3"
|
either = "1.5.3"
|
||||||
futures-channel = { version = "0.3.5", default-features = false, features = ["sink", "alloc", "std"] }
|
futures-channel = { version = "0.3.5", default-features = false, features = ["sink", "alloc", "std"] }
|
||||||
@ -125,7 +125,7 @@ futures-util = { version = "0.3.5", default-features = false, features = ["alloc
|
|||||||
generic-array = { version = "0.14.4", default-features = false, optional = true }
|
generic-array = { version = "0.14.4", default-features = false, optional = true }
|
||||||
hex = "0.4.2"
|
hex = "0.4.2"
|
||||||
hmac = { version = "0.11.0", default-features = false, optional = true }
|
hmac = { version = "0.11.0", default-features = false, optional = true }
|
||||||
itoa = "0.4.5"
|
itoa = "1"
|
||||||
ipnetwork = { version = "0.17.0", default-features = false, optional = true }
|
ipnetwork = { version = "0.17.0", default-features = false, optional = true }
|
||||||
mac_address = { version = "1.1", default-features = false, optional = true }
|
mac_address = { version = "1.1", default-features = false, optional = true }
|
||||||
libc = "0.2.71"
|
libc = "0.2.71"
|
||||||
|
@ -72,7 +72,7 @@ impl MssqlArguments {
|
|||||||
self.name.push_str("@p");
|
self.name.push_str("@p");
|
||||||
|
|
||||||
self.ordinal += 1;
|
self.ordinal += 1;
|
||||||
let _ = itoa::fmt(&mut self.name, self.ordinal);
|
self.name.push_str(itoa::Buffer::new().format(self.ordinal));
|
||||||
|
|
||||||
let MssqlArguments {
|
let MssqlArguments {
|
||||||
ref name,
|
ref name,
|
||||||
|
@ -567,7 +567,7 @@ impl TypeInfo {
|
|||||||
// size
|
// size
|
||||||
if self.size < 8000 && self.size > 0 {
|
if self.size < 8000 && self.size > 0 {
|
||||||
s.push_str("(");
|
s.push_str("(");
|
||||||
let _ = itoa::fmt(&mut *s, self.size);
|
s.push_str(itoa::Buffer::new().format(self.size));
|
||||||
s.push_str(")");
|
s.push_str(")");
|
||||||
} else {
|
} else {
|
||||||
s.push_str("(max)");
|
s.push_str("(max)");
|
||||||
|
@ -33,7 +33,7 @@ impl PgBufMutExt for Vec<u8> {
|
|||||||
// N.B. if you change this don't forget to update it in ../describe.rs
|
// N.B. if you change this don't forget to update it in ../describe.rs
|
||||||
self.extend(b"sqlx_s_");
|
self.extend(b"sqlx_s_");
|
||||||
|
|
||||||
itoa::write(&mut *self, id).unwrap();
|
self.extend(itoa::Buffer::new().format(id).as_bytes());
|
||||||
|
|
||||||
self.push(0);
|
self.push(0);
|
||||||
}
|
}
|
||||||
@ -44,7 +44,7 @@ impl PgBufMutExt for Vec<u8> {
|
|||||||
if let Some(id) = id {
|
if let Some(id) = id {
|
||||||
self.extend(b"sqlx_p_");
|
self.extend(b"sqlx_p_");
|
||||||
|
|
||||||
itoa::write(&mut *self, id).unwrap();
|
self.extend(itoa::Buffer::new().format(id).as_bytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
self.push(0);
|
self.push(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user