Comments (5)
Thanks for the report, seems like other linux distros are also affected. I fixed it in master and published a new version to crates.io
Hi @ruabmbua
Thank you for the very quick response.
Unfortunately, the new version is missing the enet_sys::size_t
type.
That means that switching from 1.0.1
to 1.0.2
is a breaking change!
You could work around this as mentioned by adding:
/// enet's size_t type, now replaced by simply using usize.
///
/// Provided for backwards-compatibility.
#[deprecated]
pub type size_t = usize;
to src/lib.rs
.
Could you redact version 1.0.2
and push version 1.0.3
with the type alias added?
That will fix it.
from enet-sys.
I believe it's fixed by this bindgen pull request: rust-lang/rust-bindgen#2319
You can try my master fork commit, there is a small change in lib.rs as it seems latest bindgen outputs usize instead of size_t: spearman@cccd979
from enet-sys.
@spearman Thanks a lot, that does indeed fix it.
I'm currently working on my fork of https://github.com/futile/enet-rs/ where enet_sys::size_t
is actually used a lot.
Could you open a PR for this main repository with your changes, and a type alias to pub type size_t = usize
for backwards compatability?
Would love for these changes to end up on crates.io, so I can also version-bump enet-rs.
from enet-sys.
Thanks for the report, seems like other linux distros are also affected. I fixed it in master and published a new version to crates.io
from enet-sys.
I'm currently working on my fork of https://github.com/futile/enet-rs/ where
enet_sys::size_t
is actually used a lot.
Could you open a PR for this main repository with your changes, and a type alias topub type size_t = usize
for backwards compatability?
Would love for these changes to end up on crates.io, so I can also version-bump enet-rs.
I haven't used that crate, I have my own wrapper here https://github.com/spearman/enet-rs I think at the time I started working on it enet had not been published to crates.io. I am coming back to it now and I am not sure if I'm going to switch yet.
from enet-sys.
Related Issues (9)
- Add `links = "enet"` to Cargo.toml to make it work with rustc-msvc HOT 2
- `cargo audit` failing due to old bindgen HOT 1
- Public interface broken in patch version (0.2.4) HOT 5
- Compile error with stable Rust toolchain E0588
- Compile error HOT 2
- Doesn't compile on Windows HOT 14
- #[derive(Copy, Clone, PartialEq, Eq)] on ENetEventType HOT 4
- Fails to build, the trait `Debug` is not implemented HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enet-sys.