These are chat archives for rust-lang/rust
src/some_module.rsand I have
src/some_other_module.rsand I want to include
some_modulehas submodules aka
src/some_module/something.rs-- those all can be used just fine, I just can't make use of a sibling
use some_other_module;but that doesn't work, I've also tried
mod some_other_module; use some_other_module;also doesn't work
mod some_module;in your main.rs if it says they aren't in the crate yet. I did not have time to get good at this but it works reasonably so far
mod [my module];to lib.rs worked :D
modstatements in your lib.rs, and then everything magically works when you go to use?
let limits = [1,3,5,10,14,13,17,27,22,24,47,2,4,20,25,1000,3007];is there a compact way of saying those are all u64's
let limits: [u64, _] = [thing of fixed size]and auto fill the
[u64; 18719879847]as a type, and I have two of those,
==should just work, it's silly that it doesn't
&arr[..], and these are not limited to 32 elements. But hopefully const generics will fix the problem with arrays.
rocket::response::Responder<'_>is not implemented for"... but it should be for the Json type so I don't understand it. Minimal code example at https://gist.github.com/bjornharrtell/5ea10f0003378bf76d8f2abe04079e2a.
JsonErrorstruct is missing a
Debugimpl. If you make it
#[derive(Debug, Serialize)], everything works.