Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

paperclip

> 编程语言
Open source

WIP OpenAPI tooling for Rust.

119.3K stars0 likes5 views
WebsiteGitHub

About

WIP OpenAPI tooling for Rust.

Paperclip

Paperclip offers tooling for the OpenAPI specification. Once complete, it will provide:

  • Code generation for efficient, type-safe, compile-time checked HTTP APIs (server, client and CLI) in Rust.
  • Support for processing, validating and hosting OpenAPI spec.
  • Customization for spec and code generation.

It's currently under active development and may not be ready for production use just yet.

You may be interested in:

  • Examples and Usage.
  • Features being worked on.
  • API documentation.

Developing locally

  • Clone the repository along with its submodules using the following command:

    bash
     git clone --recurse-submodules [email protected]:paperclip-rs/paperclip.git
  • Make sure you have rustup installed.

  • Then move to repository:

    bash
    cd paperclip
  • Run the setup environment routine

    bash
    make prepare
  • Build the project and run tests:

    bash
    make

Contributing

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.

Code of Conduct

This project follows the Rust Code of Conduct.

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Sponsors

Folks who have sponsored for the development of this project:

FAQ

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.

Issues· 91 open

View all issuesOpen on GitHub
  • #558

    RUSTSEC-2026-0173: proc-macro-error2 is unmaintained

    Updated Jun 9, 2026
  • #556

    Add gzip flag for swagger ui

    Updated Feb 11, 2026
  • #308

    Stepping down as a maintainer

    help wantedUpdated Jul 25, 2025
  • #177

    Support converting swagger (v2) spec to OpenAPI v3

    enhancementlegendaryresearchUpdated Jul 25, 2025
  • #162

    [Suggestion] Actix Plugin: Support a range of actix_web versions

    enhancementnormalUpdated Jul 25, 2025
  • #476

    Paperclip CLI fails on openapi v3: YAML error: missing field `swagger`

    Updated Jun 17, 2025
  • #453

    Regression in 0.7.1 for actix web & tail matches

    Updated Mar 7, 2025
  • #320

    Add support for `Box<T>`

    Updated Feb 21, 2025
  • #537

    Is there a way to not skip Enum(Struct) or Enum(Enum)?

    Updated Oct 13, 2024
  • #538

    Keep struct fields order in schema

    Updated Sep 18, 2024

> Tags

Rusthacktoberfestopenapirust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedDec 4, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言