Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/cotPublic

The Rust web framework for lazy developers.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

cot-rs/cot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Cot

Rust Build Statuscrates.ioGuideDocumentationcodecovDiscord chatGitHub SponsorsOpen Collective backers

Warning

Cot is currently missing a lot of features and isnot ready for anything even remotely close to production use.That said, you are more than welcome to try it out and provide feedback!

Cot is an easy to use, modern, and fast web framework for Rust. It has been designed to be familiar if you've everusedDjango, and easy to learn if you haven't. It's a batteries-included frameworkbuilt on top ofaxum.

Features

  • Easy to use API — in many ways modeled after Django, Cot's API is designed to be easy to use and intuitive.Sensible defaults make it for easy rapid development, while the API is still empowering you when needed. Thedocumentation is a first-class citizen in Cot, making it easy to find what you're looking for.
  • ORM integration — Cot comes with its own ORM, allowing you to interact with your database in a way that feelsRusty and intuitive. Rust types are the source of truth, and the ORM takes care of translating them to and from thedatabase, as well as creating the migrations automatically.
  • Type safe — wherever possible, Cot uses Rust's type system to prevent common mistakes and bugs. Not only viewsare taking advantage of the Rust's type system, but also the ORM, the admin panel, and even the templates. All that tocatch errors as early as possible.
  • Admin panel — Cot comes with an admin panel out of the box, allowing you to manage your app's data with ease.Adding new models to the admin panel is stupidly simple, making it a great tool not only for rapid development anddebugging, but with its customization options, also for production use.
  • Secure by default — security should be opt-out, not opt-in. Cot takes care of making your web apps secure bydefault, defending it against common modern web vulnerabilities. You can focus on building your app, not securing it.

Getting Started

Packaging status

To get started with Cot, you need to have Rust installed. If you don't have it yet, you can install it by followingthe instructions on theofficial Rust website.

Then, you need to install cot-cli by running:

cargo install cot-cli

After that, you can create a new project by running:

cot new my_project

This will create a new project in themy_project directory. You can then navigate to the project directory and runthe following command to start the development server:

cargo run

We recommend you to read theofficial guide to learn more about Cotand how to use it.

cot-cli packages

If you prefer to use your operating system's package manager to manage thecot-cli package, you can find it in therepositories listed in the “Packaging status” badge on the right. Note that most of these packages are maintained bythe community, so you should always check what exactly is included in the package. Moreover, the version in the packagemanager might not be the latest one, so we recommend just using the official package which can be installed withcargo install cot-cli.

Development

Testing

Tests that require using external databases are ignored by default. In order to run them, execute the following in theroot of the repository:

docker compose up -dcargotest --all-features -- --include-ignored

You can them execute the following command to stop the database:

docker compose down

Star History

Star History Chart

Contributors

Made withcontrib.rocks.

License

Cot is licensed under either of the following, at your option:

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Cot by you shall bedual licensed under the MIT License and Apache License, Version 2.0, without any additional terms or conditions.

About

The Rust web framework for lazy developers.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors16

Languages


[8]ページ先頭

©2009-2025 Movatter.jp