Skip to content

Commit 094e02d

Browse files
authored
[xitca-web] update dep. (#9201)
1 parent 6130590 commit 094e02d

File tree

8 files changed

+274
-247
lines changed

8 files changed

+274
-247
lines changed

frameworks/Rust/xitca-web/Cargo.lock

Lines changed: 258 additions & 229 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/Rust/xitca-web/Cargo.toml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ required-features = ["io-uring", "pg", "router", "template"]
1111
[[bin]]
1212
name = "xitca-web-iou"
1313
path = "./src/main_iou.rs"
14-
required-features = ["io-uring", "perf", "pg-iou", "template"]
14+
required-features = ["io-uring", "perf", "pg", "template"]
1515

1616
[[bin]]
1717
name = "xitca-web-wasm"
@@ -33,8 +33,6 @@ required-features = ["pg-orm", "template", "web-codegen"]
3333
pg = ["xitca-postgres/single-thread"]
3434
# pg send/sync optional
3535
pg-sync = ["xitca-postgres"]
36-
# pg io_uring optional
37-
pg-iou = ["pg", "xitca-postgres/io-uring"]
3836
# pg orm optional
3937
pg-orm = ["diesel"]
4038
# http router optional
@@ -53,18 +51,18 @@ axum = ["dep:axum", "http-body", "tower", "tower-http", "xitca-web/tower-http-co
5351
perf = ["mimalloc", "tokio/parking_lot"]
5452

5553
[dependencies]
56-
xitca-http = "0.5"
57-
xitca-io = "0.3"
58-
xitca-server = "0.3"
59-
xitca-service = "0.1"
60-
xitca-unsafe-collection = "0.1.1"
54+
xitca-http = "0.6"
55+
xitca-io = "0.4"
56+
xitca-server = "0.4"
57+
xitca-service = "0.2"
58+
xitca-unsafe-collection = "0.2"
6159

6260
atoi = "2"
6361
serde = { version = "1" }
6462
serde_json = { version = "1" }
6563

6664
# web optional
67-
xitca-web = { version = "0.5", features = ["json"], optional = true }
65+
xitca-web = { version = "0.6", features = ["json"], optional = true }
6866

6967
# raw-pg optional
7068
xitca-postgres = { version = "0.1", optional = true }
@@ -97,4 +95,4 @@ codegen-units = 1
9795
panic = "abort"
9896

9997
[patch.crates-io]
100-
xitca-postgres = { git = "https://github.com/HFQR/xitca-web.git", rev = "ea1f5a2447e0969a6dff84eac9ff9ff90dbc7ed1" }
98+
xitca-postgres = { git = "https://github.com/HFQR/xitca-web.git", rev = "0cad5309beb278dc967378a35b733e26be0d4073" }

frameworks/Rust/xitca-web/src/main_iou.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use xitca_http::{
2424
};
2525
use xitca_io::{
2626
bytes::{Bytes, BytesMut},
27-
io_uring::IoBuf,
27+
io_uring::BoundedBuf,
2828
net::{io_uring::TcpStream as IOUTcpStream, TcpStream},
2929
};
3030
use xitca_service::{fn_build, fn_service, middleware::UncheckedReady, Service, ServiceExt};

frameworks/Rust/xitca-web/src/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ mod non_wasm {
4949
}
5050
}
5151

52-
#[cfg(any(feature = "pg", feature = "pg-iou"))]
52+
#[cfg(feature = "pg")]
5353
mod pg_state {
5454
use core::{cell::RefCell, future::Future, pin::Pin};
5555

@@ -79,7 +79,7 @@ mod non_wasm {
7979
}
8080
}
8181

82-
#[cfg(any(feature = "pg", feature = "pg-iou"))]
82+
#[cfg(feature = "pg")]
8383
pub use pg_state::*;
8484
}
8585

frameworks/Rust/xitca-web/xitca-web-axum.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.79
22

33
ADD ./ /xitca-web
44
WORKDIR /xitca-web

frameworks/Rust/xitca-web/xitca-web-iou.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM rust:1.77
1+
FROM rust:1.79
22

33
ADD ./ /xitca-web
44
WORKDIR /xitca-web
55

6-
RUN cargo build --release --bin xitca-web-iou --features io-uring,perf,pg-iou,template
6+
RUN cargo build --release --bin xitca-web-iou --features io-uring,perf,pg,template
77

88
EXPOSE 8080
99

frameworks/Rust/xitca-web/xitca-web-sync.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.79
22

33
ADD ./ /xitca-web
44
WORKDIR /xitca-web

frameworks/Rust/xitca-web/xitca-web.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77
1+
FROM rust:1.79
22

33
ADD ./ /xitca-web
44
WORKDIR /xitca-web

0 commit comments

Comments
 (0)