Skip to content

Commit 60f97b0

Browse files
committed
Read the data
1 parent 4912e8c commit 60f97b0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ repository = "https://github.com/the-type-founders/unicode-writing-script"
1010
readme = "README.md"
1111
categories = ["text-processing"]
1212
keywords = ["writing-script", "unicode"]
13+
14+
[build-dependencies]
15+
serde_json = { version = "1", default-features = false, features = ["std"] }

build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
use std::collections::HashMap;
2+
3+
const DATA: &str = include_str!("vendor/detect-writing-script/data.json");
4+
5+
fn main() {
6+
let _: HashMap<String, Vec<[usize; 2]>> = serde_json::from_str(DATA).unwrap();
7+
}

0 commit comments

Comments
 (0)