包布丁
包布丁
It would be super convenient to compose a complex [`Value`](cbor4ii::core::Value) directly from a diagnostic notation literal with a macro, similar to [`serde_json::json!`](https://docs.rs/serde_json/latest/serde_json/macro.json.html).
See also: https://github.com/YtFlow/Maple/issues/11
Some data types like `std::net::IpAddr` has two different representations for human-readable and non-human-readable Deserializers. However, the built-in deserializers that work with enums do not recognize human-readability of the data format,...
### 简要描述问题 shadowsocks-windows 内置的 SOCKS5 服务不能正确处理被拆散的 SOCKS5 请求,导致这些客户端无法连接到 shadowsocks-windows 代理。使用相同的客户端连接其它 SOCKS5 服务器,例如 Clash 就可以工作。 实际请求流量通过 Wireshark 抓取是这样的:  可以看到头部被分成了两个包,猜测 shadowsocks-windows 读取到不完整的请求时没有继续读取,而是直接当成错误处理了。 相关 issue: https://github.com/YtFlow/Maple/issues/20 ### 环境 - Shadowsocks客户端版本:Shadowsocks-4.4.0.185 - 操作系统版本:Windows...
We want to identify whether a L3 datalink packet is sent to the interface or going outward. However, iterating over a `DataLinkReceiver` through [`DataLinkReceiverImpl::next`](https://docs.rs/pnet_datalink/0.25.0/src/pnet_datalink/linux.rs.html#95-216) only provides data packets, while `caddr`...
Currently, generated interface implementation (including callback consumption) does not catch unwinding panics. By default, when a panic occurs in user code, the thread starts unwinding all the way down to...
Inspired by [tests/implement/tests/generic_default.rs](https://github.com/microsoft/windows-rs/blob/d1a697339c2590186184415bd19d0546eb61561d/tests/implement/tests/generic_default.rs), I was trying to implement a simple `IVectorView`. The `GetMany` function inside `IVectorView` has a out param [`items`](tests/implement/tests/generic_default.rs), which is an WinRT array. The generated shim code...
Delegate types require a closure with type `impl FnMut` to construct. The following demo fails to compile. ```rust winrt::import!( dependencies os types windows::ui::core::{CoreDispatcher, IdleDispatchedHandler} ); use windows::ui::core::*; #[allow(unused)] fn dispatch(dispatcher:...
Taking a reference to an unaligned field is an undefined behavior, even if it is converted to a pointer immediately. Although the memory access here must be aligned given the...
Replace unsafe `Pin::new_unchecked` with proper `pin-project` usage. Note that `pin-project-lite` is already included in the dependency tree.