Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Directory structure for crates #647

@sunfishcode

Description

@sunfishcode

Currently Cranelift uses a cargo workspace structure in which there's a top-level crate, and then subcrates under a lib directory with shortened names:

lib/wasm/ - the cranelift-wasm crate
lib/codegen/ - the cranelift-codegen crate
etc.

I've not seen any other Rust projects organized in this way. What I have seen is that projects create directories under the top level with the full name of their crates. For Cranelift, that would look something like this:

cranelift-wasm/
cranelift-codegen/
etc.

Has anyone found the /lib/foo structure to be confusing? Would the full crate name approach be easier to understand?

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-rustIssues approachable by people with a general-purpose Rust background.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions