Skip to content

Rust-2018: Check for submodules in a folder with the current module's name #254

@glandium

Description

@glandium
$ rustup default beta
$ cargo new --lib foo
$ cd foo
$ echo "mod qux;" > src/lib.rs
$ echo "mod bar;" > src/qux.rs
$ mkdir src/qux
$ touch src/qux/bar.rs
$ cargo build
   Compiling foo v0.1.0 (/tmp/foo)                                                                                                                                       
    Finished dev [unoptimized + debuginfo] target(s) in 0.33s
$ cbindgen
WARN: Parsing crate `foo`: can't find mod bar`.
#include <cstdint>
#include <cstdlib>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions