Closed kwaa closed 2 weeks ago
Overall, the changes focus on code and configuration optimization, simplification, and dependency management. This includes refining method calls in various Rust files, streamlining configurations in flake.nix
, and updating continuous integration workflows to use improved actions. The changes enhance the codebase's maintainability, readability, and efficiency without altering the core functionalities of public entities.
Files and Directories | Change Summary |
---|---|
.envrc |
Removed an unnecessary argument in the use flake command, simplifying the environment setup. |
Cargo.toml |
Commented out the openssl dependency, potentially impacting the use of this crate. |
flake.nix |
Added crane , refactored toolchain and package setups, adjusted build dependencies, introduced cargoClippy checks, and defined default packages and development shells. |
.github/workflows/check.yml |
Updated CI workflows to use improved Nix installation and caching actions. |
crates/api_apub/src/... |
Simplified code logic by removing unnecessary references in method calls for post and user functions. |
crates/api_mastodon/src/... |
Modified method calls to simplify ID usage in context.rs , status_favourited_by.rs , and status_reblogged_by.rs . |
crates/apub/src/... |
Removed unnecessary references in methods related to user and post IDs in db_user.rs and db_post.rs . |
crates/backend/src/favicon.rs |
Refactored paths to favicon files, simplifying their inclusion. |
crates/nodeinfo/src/schema.rs |
Changed the new() function to a const fn for the NodeInfoServices struct. |
crates/utils/src/data.rs |
Added #[must_use] attribute to the info() function in the AppEnv implementation. |
crates/well_known/src/routes/webfinger.rs |
Removed unnecessary conversion of URL to string in the webfinger function call. |
N/A
In code we dance, refactor, refine,
Simplify paths where bright lights shine.
Dependencies trimmed, methods made clear,
Fewer conversions, the goal is near.
CI flows smooth, with Nix in command,
Celebrate progress with a rabbit’s hand! 🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
18
Summary by CodeRabbit
New Features
crane
support for toolchain setup and package configurations.Refactor
.to_string()
conversions.Bug Fixes
Chores
openssl
inCargo.toml
.Documentation
#[must_use]
attribute to theinfo()
function in theAppEnv
implementation for better usage guidance.