Gnurou / v4l2r

Rust bindings for V4L2
MIT License
21 stars 10 forks source link

Project layout #28

Open lu-zero opened 4 months ago

lu-zero commented 4 months ago

Since it is a workspace with 3 components:

It is common to either have

Are you fine with either refactor?

Gnurou commented 4 months ago

Having the library as the root crate sounds definitely like a better design, in fact IIRC I wanted to go with something like that but couldn't do it for some reason.

Is having secondary crates in crates/ a convention? I'm also not sure if we can talk about cli utilities, there are examples that are maybe a bit more involved than what one would expect, but I'd not go as far as suggesting they can actually be useful to something other than testing. :)

In any case let's make sure to clearly define the layout before doing any groundwork.

lu-zero commented 4 months ago

crates/ is commonly used to keep everything tidy, but not always used. Naming-wise it is common to have those names though.