Compare commits

...

2 Commits

Author SHA1 Message Date
xfy
997f9b4617 ci: switch to rsproxy cargo mirror
Some checks failed
CI / check (push) Successful in 10m25s
CI / build (push) Failing after 2m45s
2026-06-12 17:29:37 +08:00
xfy
942ac853fe refactor: tighten module-level allow attributes 2026-06-12 17:26:46 +08:00
12 changed files with 28 additions and 24 deletions

View File

@ -24,7 +24,7 @@ jobs:
- name: Configure Cargo mirror
run: |
mkdir -p "$HOME/.cargo"
printf '%s\n' '[source.crates-io]' "replace-with = 'ustc'" '' "[source.ustc]" 'registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"' > "$HOME/.cargo/config.toml"
printf '%s\n' '[source.crates-io]' "replace-with = 'rsproxy'" '' "[source.rsproxy]" 'registry = "sparse+https://rsproxy.cn/index/"' > "$HOME/.cargo/config.toml"
- name: Install Rust toolchain
run: |
@ -74,7 +74,7 @@ jobs:
- name: Configure Cargo mirror
run: |
mkdir -p "$HOME/.cargo"
printf '%s\n' '[source.crates-io]' "replace-with = 'ustc'" '' "[source.ustc]" 'registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"' > "$HOME/.cargo/config.toml"
printf '%s\n' '[source.crates-io]' "replace-with = 'rsproxy'" '' "[source.rsproxy]" 'registry = "sparse+https://rsproxy.cn/index/"' > "$HOME/.cargo/config.toml"
- name: Install Rust toolchain
run: |

View File

@ -1,4 +1,4 @@
#![allow(clippy::unused_unit, deprecated, unused_imports)]
#![allow(clippy::unused_unit, deprecated)]
use dioxus::prelude::*;
#[cfg(feature = "server")]

View File

@ -1,4 +1,4 @@
#![allow(clippy::unused_unit, deprecated, unused_imports)]
#![allow(clippy::unused_unit, deprecated)]
#[cfg(feature = "server")]
use crate::models::comment::{AdminComment, CommentStatus, PublicComment};

View File

@ -1,4 +1,4 @@
#![allow(clippy::unused_unit, deprecated, unused_imports)]
#![allow(clippy::unused_unit, deprecated)]
#[cfg(feature = "server")]
fn html_escape(s: &str) -> String {

View File

@ -1,9 +1,4 @@
#![allow(
clippy::unused_unit,
deprecated,
unused_imports,
clippy::too_many_arguments
)]
#![allow(clippy::unused_unit, deprecated)]
mod check;
mod create;
@ -16,10 +11,14 @@ mod update;
pub use check::check_pending_status;
pub use create::create_comment;
#[allow(unused_imports)]
pub use list::{get_all_comments, get_pending_comments, get_pending_count};
pub use read::{get_comment_count, get_comments};
#[allow(unused_imports)]
pub use read::get_comment_count;
pub use read::get_comments;
pub use types::*;
pub use update::{approve_comment, batch_update_comment_status, spam_comment, trash_comment};
#[cfg(feature = "server")]
#[allow(unused_imports)]
pub use markdown::render_comment_markdown;

View File

@ -1,4 +1,4 @@
#![allow(clippy::unused_unit, deprecated, unused_imports)]
#![allow(clippy::unused_unit, deprecated)]
#[cfg(feature = "server")]
pub fn clean_html(input: &str) -> String {

View File

@ -1,3 +1,5 @@
#![allow(clippy::too_many_arguments)]
use dioxus::prelude::*;
#[cfg(feature = "server")]

View File

@ -1,9 +1,4 @@
#![allow(
clippy::unused_unit,
deprecated,
unused_imports,
clippy::too_many_arguments
)]
#![allow(clippy::unused_unit, deprecated)]
mod create;
mod delete;
@ -17,18 +12,26 @@ mod tags;
mod types;
mod update;
#[allow(unused_imports)]
pub use create::create_post;
pub use delete::delete_post;
pub use list::{get_posts_by_tag, list_posts, list_published_posts};
#[allow(unused_imports)]
pub use list::list_posts;
pub use list::{get_posts_by_tag, list_published_posts};
#[allow(unused_imports)]
pub use read::{get_post_by_id, get_post_by_slug};
pub use rebuild::rebuild_content_html;
pub use search::search_posts;
#[allow(unused_imports)]
pub use stats::get_post_stats;
pub use tags::list_tags;
pub use types::*;
#[allow(unused_imports)]
pub use update::update_post;
#[cfg(feature = "server")]
#[allow(unused_imports)]
pub use crate::api::markdown::render_markdown_enhanced;
#[cfg(feature = "server")]
#[allow(unused_imports)]
pub use crate::api::slug::{ensure_unique_slug, is_valid_slug, slugify};

View File

@ -1,3 +1,5 @@
#![allow(clippy::too_many_arguments)]
use dioxus::prelude::*;
#[cfg(feature = "server")]

View File

@ -1,4 +1,4 @@
#![allow(clippy::unused_unit, deprecated, unused_imports)]
#![allow(clippy::unused_unit, deprecated)]
#[cfg(feature = "server")]
use std::collections::HashSet;

View File

@ -1,4 +1,4 @@
#![allow(clippy::unused_unit, deprecated, unused_imports)]
#![allow(clippy::unused_unit, deprecated)]
use dioxus::prelude::*;

View File

@ -1,5 +1,3 @@
#![allow(clippy::unused_unit)]
#[cfg(feature = "server")]
use axum::{
extract::Multipart,