Skip to content
Extraits de code Groupes Projets
Vérifiée Valider b83ec3dd rédigé par Kubat's avatar Kubat
Parcourir les fichiers

RUST: The safe part of the rust lib should use the lektor_c_compat::rs_types...

RUST: The safe part of the rust lib should use the lektor_c_compat::rs_types types and not the lektor_c_compat::c_types types.
parent 409028d9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
pub mod c_types; pub mod c_types;
mod rs_types;
pub use rs_types::*;
pub use libc::{c_char, c_int, c_long, c_void, size_t}; pub use libc::{c_char, c_int, c_long, c_void, size_t};
/// The maximal length of a tag in lektor. /// The maximal length of a tag in lektor.
......
use crate::c_types::*;
pub struct LktCQueue {
c_ptr: LktQueuePtr,
}
pub struct LktCUri {
c_ptr: LktUriPtr,
}
impl From<LktQueuePtr> for LktCQueue {
fn from(c_ptr: LktQueuePtr) -> Self {
Self { c_ptr }
}
}
impl From<LktUriPtr> for LktCUri {
fn from(c_ptr: LktUriPtr) -> Self {
Self { c_ptr }
}
}
//! The crate responsible of downloading karas from kurisu. //! The crate responsible of downloading karas from kurisu.
use lektor_c_compat::c_types::*; use lektor_c_compat::*;
/// The structure responsible to download karas from kurisu. /// The structure responsible to download karas from kurisu.
pub struct LktModuleRepoRs { pub struct LktModuleRepoRs {
queue: LktQueuePtr, queue: LktCQueue,
} }
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter