Skip to content

Commit cc948f5

Browse files
authored
Merge pull request #186 from Tencent/relaese/v0.8.1
Relaese/v0.8.1
2 parents c3120ce + 3e8ec9d commit cc948f5

File tree

4 files changed

+45
-55
lines changed

4 files changed

+45
-55
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1111
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1212

1313

14+
## [v0.8.1] - 2024-03-18
15+
16+
### Removed
17+
18+
- Remove the sfv feature flag from h3 (to resolve a build issue at docs.rs)
19+
20+
1421
## [v0.8.0] - 2024-03-15
1522

1623
### Added
@@ -157,6 +164,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
157164
- Provide example clients and servers.
158165

159166

167+
[v0.8.1]: https://github.com/tencent/tquic/compare/v0.8.0...v0.8.1
168+
[v0.8.0]: https://github.com/tencent/tquic/compare/v0.7.0...v0.8.0
160169
[v0.7.0]: https://github.com/tencent/tquic/compare/v0.6.0...v0.7.0
161170
[v0.6.0]: https://github.com/tencent/tquic/compare/v0.5.0...v0.6.0
162171
[v0.5.0]: https://github.com/tencent/tquic/compare/v0.4.0...v0.5.0

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tquic"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
edition = "2021"
55
rust-version = "1.70.0"
66
license = "Apache-2.0"
@@ -29,9 +29,6 @@ include = [
2929
# build the FFI API
3030
ffi = []
3131

32-
# enable sfv
33-
default = ["sfv"]
34-
3532
[dependencies]
3633
bytes = "1"
3734
rustc-hash = "1.1"
@@ -51,7 +48,7 @@ serde_derive = "1.0"
5148
serde_with = "3.0.0"
5249
hex = "0.4"
5350
priority-queue = "1.3.2"
54-
sfv = { version = "0.9", optional = true }
51+
sfv = { version = "0.9" }
5552

5653
[dev-dependencies]
5754
env_logger = "0.10.0"

src/h3/connection.rs

Lines changed: 32 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
use std::collections::hash_map;
1616
use std::collections::VecDeque;
17-
#[cfg(feature = "sfv")]
1817
use std::convert::TryFrom;
1918
use std::mem::MaybeUninit;
2019
use std::sync::Arc;
@@ -2106,8 +2105,6 @@ impl Http3Priority {
21062105
}
21072106
}
21082107

2109-
#[cfg(feature = "sfv")]
2110-
#[cfg_attr(docsrs, doc(cfg(feature = "sfv")))]
21112108
impl TryFrom<&[u8]> for Http3Priority {
21122109
type Error = crate::h3::Http3Error;
21132110

@@ -4414,17 +4411,14 @@ mod tests {
44144411

44154412
assert_eq!(s.server_poll(), Ok((stream_id, Http3Event::PriorityUpdate)));
44164413

4417-
#[cfg(feature = "sfv")]
4418-
{
4419-
let priority_value = s.server.take_priority_update(stream_id).unwrap();
4420-
assert_eq!(
4421-
Http3Priority::try_from(priority_value.as_slice()),
4422-
Ok(Http3Priority {
4423-
urgency: 3,
4424-
incremental: false
4425-
})
4426-
);
4427-
}
4414+
let priority_value = s.server.take_priority_update(stream_id).unwrap();
4415+
assert_eq!(
4416+
Http3Priority::try_from(priority_value.as_slice()),
4417+
Ok(Http3Priority {
4418+
urgency: 3,
4419+
incremental: false
4420+
})
4421+
);
44284422

44294423
// Subcase3: Client send priority update for request stream, incremental.
44304424
s.client
@@ -4442,17 +4436,14 @@ mod tests {
44424436

44434437
assert_eq!(s.server_poll(), Ok((stream_id, Http3Event::PriorityUpdate)));
44444438

4445-
#[cfg(feature = "sfv")]
4446-
{
4447-
let priority_value = s.server.take_priority_update(stream_id).unwrap();
4448-
assert_eq!(
4449-
Http3Priority::try_from(priority_value.as_slice()),
4450-
Ok(Http3Priority {
4451-
urgency: 3,
4452-
incremental: true
4453-
})
4454-
);
4455-
}
4439+
let priority_value = s.server.take_priority_update(stream_id).unwrap();
4440+
assert_eq!(
4441+
Http3Priority::try_from(priority_value.as_slice()),
4442+
Ok(Http3Priority {
4443+
urgency: 3,
4444+
incremental: true
4445+
})
4446+
);
44564447

44574448
assert_eq!(s.server_poll(), Err(Http3Error::Done));
44584449
}
@@ -4480,17 +4471,14 @@ mod tests {
44804471
// 2. Server receive priority update.
44814472
assert_eq!(s.server_poll(), Ok((stream_id, Http3Event::PriorityUpdate)));
44824473

4483-
#[cfg(feature = "sfv")]
4484-
{
4485-
let priority_value = s.server.take_priority_update(stream_id).unwrap();
4486-
assert_eq!(
4487-
Http3Priority::try_from(priority_value.as_slice()),
4488-
Ok(Http3Priority {
4489-
urgency: 3,
4490-
incremental: false
4491-
})
4492-
);
4493-
}
4474+
let priority_value = s.server.take_priority_update(stream_id).unwrap();
4475+
assert_eq!(
4476+
Http3Priority::try_from(priority_value.as_slice()),
4477+
Ok(Http3Priority {
4478+
urgency: 3,
4479+
incremental: false
4480+
})
4481+
);
44944482

44954483
// Stream's priority is not initialized, the underlying quic stream is not opened, in server side.
44964484
let stream = s.server.streams.get(&stream_id).unwrap();
@@ -4576,17 +4564,14 @@ mod tests {
45764564
assert_eq!(s.server_poll(), Ok((stream_id, Http3Event::PriorityUpdate)));
45774565
assert_eq!(s.server_poll(), Err(Http3Error::Done));
45784566

4579-
#[cfg(feature = "sfv")]
4580-
{
4581-
let priority_value = s.server.take_priority_update(stream_id).unwrap();
4582-
assert_eq!(
4583-
Http3Priority::try_from(priority_value.as_slice()),
4584-
Ok(Http3Priority {
4585-
urgency: 5,
4586-
incremental: false
4587-
})
4588-
);
4589-
}
4567+
let priority_value = s.server.take_priority_update(stream_id).unwrap();
4568+
assert_eq!(
4569+
Http3Priority::try_from(priority_value.as_slice()),
4570+
Ok(Http3Priority {
4571+
urgency: 5,
4572+
incremental: false
4573+
})
4574+
);
45904575

45914576
assert_eq!(s.server_poll(), Err(Http3Error::Done));
45924577
}
@@ -4818,7 +4803,6 @@ mod tests {
48184803
}
48194804

48204805
#[test]
4821-
#[cfg(feature = "sfv")]
48224806
fn parse_extensible_priority() {
48234807
for (priority, urgency, incremental) in [
48244808
("", PRIORITY_URGENCY_DEFAULT, PRIORITY_INCREMENTAL_DEFAULT),

tools/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tquic_tools"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
edition = "2021"
55
rust-version = "1.70.0"
66
license = "Apache-2.0"
@@ -23,7 +23,7 @@ rand = "0.8.5"
2323
statrs = "0.16"
2424
jemallocator = { version = "0.5", package = "tikv-jemallocator" }
2525
signal-hook = "0.3.17"
26-
tquic = { path = "..", version = "0.8.0"}
26+
tquic = { path = "..", version = "0.8.1"}
2727

2828
[lib]
2929
crate-type = ["lib"]

0 commit comments

Comments
 (0)