New structure.

This commit is contained in:
2019-03-17 19:05:56 +01:00
parent daac79b169
commit c472cf7f39
9 changed files with 36 additions and 8 deletions

View File

@@ -1,8 +1,5 @@
[package] [workspace]
name = "dict-tei" members = [
version = "0.1.0" "dict",
authors = ["Anders Olsson <anders.e.olsson@gmail.com>"] "dict-tei",
edition = "2018" ]
[dependencies]
quick-xml = "0.13"

View File

8
dict-tei/Cargo.toml Normal file
View File

@@ -0,0 +1,8 @@
[package]
name = "dict-tei"
version = "0.1.0"
authors = ["Anders Olsson <anders.e.olsson@gmail.com>"]
edition = "2018"
[dependencies]
quick-xml = "0.13"

3
dict/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
/target
**/*.rs.bk
Cargo.lock

8
dict/Cargo.toml Normal file
View File

@@ -0,0 +1,8 @@
[package]
name = "dict"
version = "0.1.0"
authors = ["Anders Olsson <anders.e.olsson@gmail.com>"]
edition = "2018"
[dependencies]
isolang = "1.0"

12
dict/src/lib.rs Normal file
View File

@@ -0,0 +1,12 @@
use isolang::Language;
pub struct Entry {
language: Language,
orthographic: String,
translation: Vec<Translation>,
}
pub struct Translation {
language: Language,
translations: Vec<String>,
}