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
🦀🦀🦀🦀🦀🦀🦀🦀🦀 | |
🦀🦀🦀🦀🦀🦀🦀🦀🦀 |
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
/// works for any T where T implements copy and default. | |
mod array_serde { | |
use serde::{Deserialize, Deserializer, Serialize, Serializer}; | |
pub fn serialize<S, T: Serialize>(array: &[T], serializer: S) -> Result<S::Ok, S::Error> | |
where | |
S: Serializer, | |
{ | |
array.serialize(serializer) | |
} |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"jsx": "react", | |
"incremental": true, | |
"target": "es2017", | |
"outDir": "build/main", | |
"rootDir": "assets", | |
"moduleResolution": "node", | |
"module": "commonjs", | |
"declaration": true, |