This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using osu.Game.Beatmaps; | |
using osu.Game.Beatmaps.Formats; | |
using osu.Game.Rulesets; | |
using osu.Game.Rulesets.Catch; | |
using osu.Game.Rulesets.Difficulty; | |
using osu.Game.Rulesets.Mania; | |
using osu.Game.Rulesets.Osu; | |
using osu.Game.Rulesets.Taiko; | |
using osu.Game.Scoring; | |
using System.Diagnostics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use rkyv::rel_ptr::RelPtr; | |
use rkyv::ser::{ScratchSpace, Serializer}; | |
use rkyv::with::{ArchiveWith, DeserializeWith, SerializeWith}; | |
use rkyv::{ | |
out_field, Archive, Archived, Deserialize, DeserializeUnsized, Fallible, Serialize, | |
SerializeUnsized, | |
}; | |
use std::alloc; | |
use std::slice; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod with_convert; | |
use rkyv::with::DeserializeWith; | |
use rkyv::{Archive, Archived, Deserialize, Fallible, Serialize}; | |
use tracing::Level; | |
use self::with_convert::{ToArchivable, WithConvert}; | |
fn main() { | |
let my_struct = MyStruct { level: Level::WARN }; |