Skip to content

Move lemmy_api_common structs to view crates, make a lemmy_api_utils crate #5642

@dessalines

Description

@dessalines

No client devs only need the api structs which are defined in api_common. See lemmy-client-rs for example. Anyway it makes sense to move the api structs like you say. Then lemmy_api_common would be moved to another path like lemmy_api_utils for all the utility functions. And lemmy_api_common would be a new crate which only contains pub use for all the api structs for use by Rust clients.

This PR can be merged already to speed up compilation, and further changes made in separate PRs.

cc @SleeplessOne1917

Originally posted by @Nutomic in #5640 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions