project-error-handling
serenity
Our great sponsors
project-error-handling | serenity | |
---|---|---|
10 | 15 | |
263 | 4,326 | |
0.0% | 2.3% | |
0.0 | 9.2 | |
almost 2 years ago | 2 days ago | |
Rust | ||
Apache License 2.0 | ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
project-error-handling
-
Hey Rustaceans! Got a question? Ask here (16/2023)!
This actually is an example of where the compiler errors could (or should have) maybe provided more help or even the potential solution, it might be worth submitting this to the error handling group.
-
A guide to error handling in Rust
If anyone's interested in helping to shape the future of Rust's built-in error-handling story, there's an error handling project group that's been doing great work recently, e.g. the major effort to move the Error trait into libcore ( https://github.com/rust-lang/project-error-handling/issues/3 ) and stabilizing std::backtrace. You can follow along or get involved via the #project-error-handling channel on the Rust zulip: https://rust-lang.zulipchat.com/
-
Update on the effort to move the Error trait into core
Getting it into alloc would enable usage in a LOT more contexts, like WASM and kernel code. Does this need a distinct tracking issue outside the ticket for moving it to core or would that just add more administrata?
Here's the previous discussion: https://github.com/rust-lang/project-error-handling/issues/11
-
What do you NOT like about Rust?
without trolling https://github.com/rust-lang/project-error-handling exist and is far from having strong conclusion and anyway I will always favor enum Error anyway however I like the idea to have a opaque box in the enum for "this is a opaque error you can't deal with as a user of my api"
-
Possible ergonomic option for error handling: what features are needed for this to work?
IIRC, the Error Handling Project Group is aware of these ideas. If this kind of thing interests you and you want to contribute, you should look into getting involved with that group.
-
Rust: Enums to Wrap Multiple Errors
> you should have the underlying message of the std::io::Error
This is a point of debate[1] among the error-handling working group.
[1]: https://github.com/rust-lang/project-error-handling/issues/4...
serenity
-
Patterns for Web API wrappers/clients
https://github.com/serenity-rs/serenity/: A Discord client, has a file containing formattable endpoint strings that are then passed to a macro to build the endpoint. These endpoints are then obtained by deconstructing an enum with the relevant fields, which is used by the client upstream to make request. I really like this approach, the use of macros and enums feels quite natural.
-
Wanting to make a bot in rust using serenity
What would be the best coding lang for this bot, I worked with discord.py in the past but I would like to use Serenity which allows you to make a discord bot with rust.
-
Create and deploy a Discord bot in Rust, in under 20 minutes (for free)
(https://github.com/serenity-rs/serenity/pull/1899).
With forced functional programming, you may be referring to serenity's builders? For example
```rust
I am one of the core team members at shuttle, and we've released the support for Serenity (a Rust library for the Discord API) a while back and now we have a tutorial ready for anyone willing to give it a go: https://www.shuttle.rs/blog/2022/09/14/serentity-discord-bot (creating a simple Discord bot, extending it to a weather forecast bot and deploying it with shuttle, for free).
We've released the support for Serenity (a Rust library for the Discord API) a while back and now we have a tutorial ready for anyone willing to give it a go!
-
Shuttle v0.5.1 is out ━ create and deploy a Discord bot with shuttle & Serenity!
For anyone who wants to get a Discord bot up and running (with Rust) - shuttle v.0.5.1 is out, with added Serenity support.
-
What do you NOT like about Rust?
Yes, I have one more example that personally affects me. I made discord bots in Python. And the pong example of Serenity was a lot of code. https://github.com/serenity-rs/serenity as compared with discordpy https://discordpy.readthedocs.io/en/stable/quickstart.html
-
How to create Discord Bots in Rust
If you need help the serenity Discord server is a great place to get it.
-
RillRate in combination with Serenity to create discord bot dashboards
The PR to add the example can be found here: https://github.com/serenity-rs/serenity/pull/1476
What are some alternatives?
mpd-discord-rpc - Rust application which displays your currently playing song / album / artist from MPD in Discord using Rich Presence.
twilight - Powerful, flexible, and scalable ecosystem of Rust libraries for the Discord API.
songbird - An async Rust library for the Discord voice API
docs.rs - crates.io documentation generator
rillrate - Real-time UI for bots and tools
discord-presence - Discord Rich Presence in Rust, with 1st party Bevy support
lavalink-rs
shuttle - Build & ship backends without writing any infrastructure files.
PyO3 - Rust bindings for the Python interpreter
propane - generators
goformat - Alternative to gofmt with configurable formatting style (indentation etc.)
eyre - A trait object based error handling type for easy idiomatic error handling and reporting in Rust applications