Skip to content

Instantly share code, notes, and snippets.

@rhzs
Created September 8, 2020 14:57
Show Gist options
  • Save rhzs/69f2a5803c7e8603d35e9c536bbf9be3 to your computer and use it in GitHub Desktop.
Save rhzs/69f2a5803c7e8603d35e9c536bbf9be3 to your computer and use it in GitHub Desktop.
[package]
name = "http"
description = "HTTP server"
version = "0.0.1"
license = "MIT"
authors = ["Singh <[email protected]>"]
edition = "2018"
[[bin]]
name = "http"
path = "src/main.rs"
[features]
default = []
[dependencies]
quaint = { version="0.1.13", features = ["postgresql", "mysql"]}
uuid = { version = "0.7", features = ["serde", "v4"] }
actix-cors = "0.3.0-alpha.1"
actix-http = "2.0.0-beta.3"
actix-rt = "1"
actix-service = "1.0.6"
actix-web = { version = "3.0.0-beta.3", features = ["rustls"] }
bytes = "0.5.6"
chrono = { version = "0.4", features = ["serde"] }
crossbeam-channel = "0.4.2"
env_logger = "0.7.1"
flate2 = "1.0.16"
futures = "0.3.4"
http = "0.1.19"
indexmap = { version = "1.3.2", features = ["serde-1"] }
log = "0.4"
main_error = "0.1.0"
baymax-error = { path = "../baymax-error", version = "0.0.1" }
prixa-http-helper = { path = "../prixa-http-helper", version = "0.0.1" }
mime = "0.3.16"
rand = "0.7.3"
regex = "1.3.6"
rustls = "0.16.0"
serde = { version = "1.0.115", features = ["derive"] }
serde_json = { version = "1.0.57", features = ["preserve_order"] }
serde_derive = "1.0"
serde_qs = "0.5.2"
sha2 = "0.8.1"
siphasher = "0.3.2"
slice-group-by = "0.2.6"
structopt = "0.3.12"
tar = "0.4.29"
tempfile = "3.1.0"
tokio = { version = "0.2.18", features = ["macros"] }
ureq = { version = "0.12.0", features = ["tls"], default-features = false }
walkdir = "2.3.1"
whoami = "0.8.1"
jsonwebtoken = "7"
[dev-dependencies]
serde_url_params = "0.2.0"
tempdir = "0.3.7"
tokio = { version = "0.2.18", features = ["macros", "time"] }
[dev-dependencies.assert-json-diff]
git = "https://github.com/qdequele/assert-json-diff"
branch = "master"
[build-dependencies]
vergen = "3.1.0"
[target.'cfg(unix)'.dependencies]
jemallocator = "0.3.2"
error[E0432]: unresolved import `byteorder`
--> /Users/angel/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_decimal-1.7.0/src/postgres.rs:480:11
|
480 | use ::byteorder::{BigEndian, ReadBytesExt};
| ^^^^^^^^^ could not find `byteorder` in `{{root}}`
error[E0432]: unresolved import `bytes`
--> /Users/angel/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_decimal-1.7.0/src/postgres.rs:481:11
|
481 | use ::bytes::{BufMut, BytesMut};
| ^^^^^ could not find `bytes` in `{{root}}`
error[E0599]: no method named `read_u16` found for struct `std::io::Cursor<&[u8]>` in the current scope
--> /Users/angel/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_decimal-1.7.0/src/postgres.rs:541:34
|
541 | let num_groups = raw.read_u16::<BigEndian>()?;
| ^^^^^^^^ method not found in `std::io::Cursor<&[u8]>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
candidate #1: `use gimli::endianity::Endianity;`
candidate #2: `use gimli::read::reader::Reader;`
candidate #3: `use object::endian::Endian;`
candidate #4: `use byteorder::io::ReadBytesExt;`
candidate #5: `use tokio::io::util::async_read_ext::AsyncReadExt;`
error[E0599]: no method named `read_i16` found for struct `std::io::Cursor<&[u8]>` in the current scope
--> /Users/angel/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_decimal-1.7.0/src/postgres.rs:542:30
|
542 | let weight = raw.read_i16::<BigEndian>()?; // 10000^weight
| ^^^^^^^^ method not found in `std::io::Cursor<&[u8]>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
candidate #1: `use gimli::endianity::Endianity;`
candidate #2: `use gimli::read::reader::Reader;`
candidate #3: `use object::endian::Endian;`
candidate #4: `use byteorder::io::ReadBytesExt;`
candidate #5: `use tokio::io::util::async_read_ext::AsyncReadExt;`
error[E0599]: no method named `read_u16` found for struct `std::io::Cursor<&[u8]>` in the current scope
--> /Users/angel/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_decimal-1.7.0/src/postgres.rs:544:28
|
544 | let sign = raw.read_u16::<BigEndian>()?;
| ^^^^^^^^ method not found in `std::io::Cursor<&[u8]>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
candidate #1: `use gimli::endianity::Endianity;`
candidate #2: `use gimli::read::reader::Reader;`
candidate #3: `use object::endian::Endian;`
candidate #4: `use byteorder::io::ReadBytesExt;`
candidate #5: `use tokio::io::util::async_read_ext::AsyncReadExt;`
error[E0599]: no method named `read_u16` found for struct `std::io::Cursor<&[u8]>` in the current scope
--> /Users/angel/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_decimal-1.7.0/src/postgres.rs:546:29
|
546 | let scale = raw.read_u16::<BigEndian>()?;
| ^^^^^^^^ method not found in `std::io::Cursor<&[u8]>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
candidate #1: `use gimli::endianity::Endianity;`
candidate #2: `use gimli::read::reader::Reader;`
candidate #3: `use object::endian::Endian;`
candidate #4: `use byteorder::io::ReadBytesExt;`
candidate #5: `use tokio::io::util::async_read_ext::AsyncReadExt;`
error[E0599]: no method named `read_u16` found for struct `std::io::Cursor<&[u8]>` in the current scope
--> /Users/angel/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_decimal-1.7.0/src/postgres.rs:551:33
|
551 | groups.push(raw.read_u16::<BigEndian>()?);
| ^^^^^^^^ method not found in `std::io::Cursor<&[u8]>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
candidate #1: `use gimli::endianity::Endianity;`
candidate #2: `use gimli::read::reader::Reader;`
candidate #3: `use object::endian::Endian;`
candidate #4: `use byteorder::io::ReadBytesExt;`
candidate #5: `use tokio::io::util::async_read_ext::AsyncReadExt;`
error: aborting due to 7 previous errors
Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `rust_decimal`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment