Fix build
This commit is contained in:
parent
a8df2b6a6f
commit
cfdbb904a4
3 changed files with 18 additions and 9 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -3952,9 +3952,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "trice"
|
name = "trice"
|
||||||
version = "0.2.0"
|
version = "0.3.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6fd6accd04d9bcc587c77f2df66cddaba0d4247dcdf9127c74e3c7a461568132"
|
checksum = "4bececc2de8a2e243c7132ed9d895814942829ca525415bfe334f125158a0042"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"js-sys",
|
"js-sys",
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
|
|
|
@ -95,7 +95,7 @@ thiserror = "1.0.38"
|
||||||
tikv = { version = "0.1.0", package = "tikv-client", optional = true }
|
tikv = { version = "0.1.0", package = "tikv-client", optional = true }
|
||||||
tokio-stream = { version = "0.1.11", optional = true }
|
tokio-stream = { version = "0.1.11", optional = true }
|
||||||
tokio-util = { version = "0.7.6", optional = true, features = ["compat"] }
|
tokio-util = { version = "0.7.6", optional = true, features = ["compat"] }
|
||||||
trice = "0.2.0"
|
trice = "0.3.0"
|
||||||
ulid = { version = "1.0.0", features = ["serde"] }
|
ulid = { version = "1.0.0", features = ["serde"] }
|
||||||
url = "2.3.1"
|
url = "2.3.1"
|
||||||
|
|
||||||
|
|
|
@ -3,32 +3,41 @@ use crate::err::Error;
|
||||||
use crate::sql::value::Value;
|
use crate::sql::value::Value;
|
||||||
|
|
||||||
#[cfg(not(feature = "http"))]
|
#[cfg(not(feature = "http"))]
|
||||||
pub async fn head((_, _): (Value, Option<Value>)) -> Result<Value, Error> {
|
pub async fn head(_: &Context<'_>, (_, _): (Value, Option<Value>)) -> Result<Value, Error> {
|
||||||
Err(Error::HttpDisabled)
|
Err(Error::HttpDisabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "http"))]
|
#[cfg(not(feature = "http"))]
|
||||||
pub async fn get((_, _): (Value, Option<Value>)) -> Result<Value, Error> {
|
pub async fn get(_: &Context<'_>, (_, _): (Value, Option<Value>)) -> Result<Value, Error> {
|
||||||
Err(Error::HttpDisabled)
|
Err(Error::HttpDisabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "http"))]
|
#[cfg(not(feature = "http"))]
|
||||||
pub async fn put((_, _, _): (Value, Option<Value>, Option<Value>)) -> Result<Value, Error> {
|
pub async fn put(
|
||||||
|
_: &Context<'_>,
|
||||||
|
(_, _, _): (Value, Option<Value>, Option<Value>),
|
||||||
|
) -> Result<Value, Error> {
|
||||||
Err(Error::HttpDisabled)
|
Err(Error::HttpDisabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "http"))]
|
#[cfg(not(feature = "http"))]
|
||||||
pub async fn post((_, _, _): (Value, Option<Value>, Option<Value>)) -> Result<Value, Error> {
|
pub async fn post(
|
||||||
|
_: &Context<'_>,
|
||||||
|
(_, _, _): (Value, Option<Value>, Option<Value>),
|
||||||
|
) -> Result<Value, Error> {
|
||||||
Err(Error::HttpDisabled)
|
Err(Error::HttpDisabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "http"))]
|
#[cfg(not(feature = "http"))]
|
||||||
pub async fn patch((_, _, _): (Value, Option<Value>, Option<Value>)) -> Result<Value, Error> {
|
pub async fn patch(
|
||||||
|
_: &Context<'_>,
|
||||||
|
(_, _, _): (Value, Option<Value>, Option<Value>),
|
||||||
|
) -> Result<Value, Error> {
|
||||||
Err(Error::HttpDisabled)
|
Err(Error::HttpDisabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "http"))]
|
#[cfg(not(feature = "http"))]
|
||||||
pub async fn delete((_, _): (Value, Option<Value>)) -> Result<Value, Error> {
|
pub async fn delete(_: &Context<'_>, (_, _): (Value, Option<Value>)) -> Result<Value, Error> {
|
||||||
Err(Error::HttpDisabled)
|
Err(Error::HttpDisabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue