使用Rust 语言重新实现 https://github.com/zjhellofss/KuiperInfer 和 https://github.com/zjhellofss/kuiperdatawhale 中的深度学习推理框架。 - feat: 添加了lazy_static 的库,实现全局变量 · SongQiPing/KuiperInfer_rs@593de91
use crate::api::github::Commit; use crate::load::{MissingReason, SiteCtxt, TryCommit}; use std::sync::LazyLock; use std::time::Duration; use serde::Deserialize; @@ -195,12 +196,10 @@ pub struct UnrolledCommit<'a> { pub sha: Option<String>, } lazy_static::lazy_static! { st...
去除lazy_static 依赖。原因: Replacedlazy_staticdependency withconstandOnceLockfor thread safety. Reordered exported items inlib.rsaffecting module order. lazy_staticusage withconstandOnceLockinfile.rs. declarations withconstdeclarations inload.rs. interface inbinding.d.ts. Walkthrough The changes involve...
.github/workflows examples src tests .gitignore Cargo.toml LICENSE-APACHE LICENSE-MIT README.md lazy-static.rs A macro for declaring lazily evaluated statics in Rust. Using this macro, it is possible to havestatics that require code to be executed at runtime in order to be initialized. This...
pub static ref CONDITION_EXPR_CREATE: String = format!( "attribute_not_exists({ATTR_TABLE_PATH}) and attribute_not_exists({ATTR_FILE_NAME})" ); pub static CONDITION_EXPR_CREATE: LazyLock<String> = LazyLock::new(|| { format!("attribute_not_exists({ATTR_TABLE_PATH}) and attribute_not...
once_cellalso has aLazy<T>type, build on top ofOnceCellwhich provides the same API as thelazy_static!macro, but without using any macros: usestd::{sync::Mutex,collections::HashMap};useonce_cell::sync::Lazy;staticGLOBAL_DATA:Lazy<Mutex<HashMap<i32,String>>>=Lazy::new(||{letmutm =...
CherishCai deleted the chore_lazy_static_LazyLock branch December 17, 2024 14:29 Contributor thynson commented Dec 19, 2024 Note that LazyLock requires Rust 1.80 Contributor thynson commented Dec 19, 2024 并不是太大的问题,主要是涉及 MSRV 的时候最好能在changelog中有提示 ️ 1 Sign...
Static libraryYou can also add MBProgressHUD as a static library to your project or workspace.Download the latest code version or add the repository as a git submodule to your git-tracked project. Open your project in Xcode, then drag and drop MBProgressHUD.xcodeproj onto your project or ...
lazy_static = "1.0" lazy_static = "1.4.0" base58 = "0.1" eth-secp256k1 = { git = "https://github.com/ethcore/rust-secp256k1" } bitcrypto = { path = "../crypto" } 2 changes: 1 addition & 1 deletion 2 network/Cargo.toml Original file line numberDiff line numberDiff line ...
ldm0 deleted the ldm_lazy_static branch March 7, 2025 15:34 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Reviewers Amanieu Assignees No one assigned Labels None yet Projects None yet Milestone No milestone Development Successfull...