Crates.io | paperclip |
lib.rs | paperclip |
version | |
source | src |
created_at | 2019-06-12 19:29:57.419175 |
updated_at | 2024-10-23 09:09:12.418129 |
description | OpenAPI tooling library for type-safe compile-time checked HTTP APIs |
homepage | https://github.com/paperclip-rs/paperclip |
repository | https://github.com/paperclip-rs/paperclip |
max_upload_size | |
id | 140654 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Paperclip offers tooling for the OpenAPI specification. Once complete, it will provide:
It's currently under active development and may not be ready for production use just yet.
You may be interested in:
Clone the repository along with its submodules using the following command:
git clone --recurse-submodules git@github.com:paperclip-rs/paperclip.git
Make sure you have rustup
installed.
Then move to repository:
cd paperclip
Run the setup environment routine
make prepare
Build the project and run tests:
make
This project welcomes all kinds of contributions. No contribution is too small!
If you want to contribute to this project but don't know how to begin or if you need help with something related to this project, feel free to send me an email (in Github profile) or join the Discord server.
This project follows the Rust Code of Conduct.
Licensed under either of
at your option.
Folks who have sponsored for the development of this project:
Why is this generating raw Rust code instead of leveraging procedural macros for compile-time codegen?
I don't think proc macros are the right way to go for REST APIs. We need to be able to see the generated code somehow to identify names, fields, supported methods, etc. With proc macros, you sorta have to guess.
This doesn't mean you can't generate APIs in compile-time. The only difference is that you'll be using build scripts instead and include!
the relevant code. That said, we're using proc-macros for other things.
The error thrown at compile-time doesn't look like it's very useful. Isn't there a better way to do this?
None that I can think of, sadly.
New ideas are here needed.