theangryangel / insim.rs

Crates for working with the Live For Speed Racing Simulator
MIT License
5 stars 1 forks source link

docs.rs build error for insim #150

Closed theangryangel closed 5 months ago

theangryangel commented 5 months ago

The pertinent bit of the logs.

Building using nightly, and this doesn't fail locally. So I guess we should add nightly to the CI :/

[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr]  Documenting insim v1.0.0-alpha.1 (/opt/rustwide/workdir)
[INFO] [stderr] error: custom attribute panicked
[INFO] [stderr]    --> src/insim/npl.rs:145:1
[INFO] [stderr]     |
[INFO] [stderr] 145 | #[binrw]
[INFO] [stderr]     | ^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: message: byte index 4 is out of bounds of ``
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `npl::Npl`
[INFO] [stderr]    --> src/insim/mod.rs:100:15
[INFO] [stderr]     |
[INFO] [stderr] 100 | pub use npl::{Npl, Passengers, PlayerFlags, PlayerType, SetFlags, TyreCompound};
[INFO] [stderr]     |               ^^^ no `Npl` in `insim::npl`
[INFO] [stderr]     |
[INFO] [stderr]     = help: consider importing one of these items instead:
[INFO] [stderr]             crate::Packet::Npl
[INFO] [stderr]             crate::insim::TinyType::Npl
[INFO] [stderr]