summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock21
-rw-r--r--Cargo.toml31
-rw-r--r--aline-demo/.gitignore1
-rw-r--r--aline-demo/Cargo.lock124
-rw-r--r--aline-demo/Cargo.toml7
-rw-r--r--aline/Cargo.lock117
-rw-r--r--aline/Cargo.toml10
-rw-r--r--src/bin/aline-demo/main.rs (renamed from aline-demo/src/main.rs)0
-rw-r--r--src/constants.rs (renamed from aline/src/constants.rs)0
-rw-r--r--src/extract.json (renamed from aline/src/extract.json)0
-rwxr-xr-xsrc/extract.py (renamed from aline/src/extract.py)0
-rw-r--r--src/lib.rs (renamed from aline/src/lib.rs)0
-rw-r--r--src/test.rs (renamed from aline/src/test.rs)0
13 files changed, 32 insertions, 279 deletions
diff --git a/Cargo.lock b/Cargo.lock
index ababc31..9ea6385 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3,7 +3,13 @@
version = 4
[[package]]
-name = "aline"
+name = "itoa"
+version = "1.0.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
+
+[[package]]
+name = "kondrak-aline"
version = "0.1.0"
dependencies = [
"once_cell",
@@ -13,19 +19,6 @@ dependencies = [
]
[[package]]
-name = "aline-demo"
-version = "0.1.0"
-dependencies = [
- "aline",
-]
-
-[[package]]
-name = "itoa"
-version = "1.0.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
-
-[[package]]
name = "memchr"
version = "2.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index 410b9aa..e5f2bd4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,25 @@
-[workspace]
-resolver = "3"
-members = [
- "./aline",
- "./aline-demo"
-]
+[package]
+name = "kondrak-aline"
+version = "0.1.0"
+edition = "2024"
+license-file = "LICENSE"
+readme = "README.md"
+repository = "https://forgejo.puffer.fish/matthieu/aline-rs"
+description = "Implementation of Kondrak's ALINE alignment algorithm"
+
+[dependencies]
+once_cell = "1.21.3"
+serde = { version = "1.0.219", features = ["derive"] }
+serde_json = "1.0.140"
+unicode-segmentation = "1.12.0"
+
+[lib]
+name = "kondrak_aline"
+path = "src/lib.rs"
+test = true
+doctest = true
+doc = true
+crate-type = ["lib"]
+
+[[bin]]
+name = "aline-demo" \ No newline at end of file
diff --git a/aline-demo/.gitignore b/aline-demo/.gitignore
deleted file mode 100644
index 9f97022..0000000
--- a/aline-demo/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-target/ \ No newline at end of file
diff --git a/aline-demo/Cargo.lock b/aline-demo/Cargo.lock
deleted file mode 100644
index d7c9773..0000000
--- a/aline-demo/Cargo.lock
+++ /dev/null
@@ -1,124 +0,0 @@
-# This file is automatically @generated by Cargo.
-# It is not intended for manual editing.
-version = 4
-
-[[package]]
-name = "aline"
-version = "0.1.0"
-dependencies = [
- "array2d",
- "once_cell",
- "serde",
- "serde_json",
- "unicode-segmentation",
-]
-
-[[package]]
-name = "aline-demo"
-version = "0.1.0"
-dependencies = [
- "aline",
-]
-
-[[package]]
-name = "array2d"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8b39cb2c1bf5a7c0dd097aa95ab859cf87dab5a4328900f5388942dc1889f74"
-
-[[package]]
-name = "itoa"
-version = "1.0.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
-
-[[package]]
-name = "memchr"
-version = "2.7.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
-
-[[package]]
-name = "once_cell"
-version = "1.21.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
-
-[[package]]
-name = "proc-macro2"
-version = "1.0.95"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
-dependencies = [
- "unicode-ident",
-]
-
-[[package]]
-name = "quote"
-version = "1.0.40"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
-dependencies = [
- "proc-macro2",
-]
-
-[[package]]
-name = "ryu"
-version = "1.0.20"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
-
-[[package]]
-name = "serde"
-version = "1.0.219"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
-dependencies = [
- "serde_derive",
-]
-
-[[package]]
-name = "serde_derive"
-version = "1.0.219"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "serde_json"
-version = "1.0.140"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373"
-dependencies = [
- "itoa",
- "memchr",
- "ryu",
- "serde",
-]
-
-[[package]]
-name = "syn"
-version = "2.0.101"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf"
-dependencies = [
- "proc-macro2",
- "quote",
- "unicode-ident",
-]
-
-[[package]]
-name = "unicode-ident"
-version = "1.0.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
-
-[[package]]
-name = "unicode-segmentation"
-version = "1.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
diff --git a/aline-demo/Cargo.toml b/aline-demo/Cargo.toml
deleted file mode 100644
index 7429188..0000000
--- a/aline-demo/Cargo.toml
+++ /dev/null
@@ -1,7 +0,0 @@
-[package]
-name = "aline-demo"
-version = "0.1.0"
-edition = "2024"
-
-[dependencies]
-aline = { path = "../aline" } \ No newline at end of file
diff --git a/aline/Cargo.lock b/aline/Cargo.lock
deleted file mode 100644
index 72e8a01..0000000
--- a/aline/Cargo.lock
+++ /dev/null
@@ -1,117 +0,0 @@
-# This file is automatically @generated by Cargo.
-# It is not intended for manual editing.
-version = 4
-
-[[package]]
-name = "aline"
-version = "0.1.0"
-dependencies = [
- "array2d",
- "once_cell",
- "serde",
- "serde_json",
- "unicode-segmentation",
-]
-
-[[package]]
-name = "array2d"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8b39cb2c1bf5a7c0dd097aa95ab859cf87dab5a4328900f5388942dc1889f74"
-
-[[package]]
-name = "itoa"
-version = "1.0.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
-
-[[package]]
-name = "memchr"
-version = "2.7.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
-
-[[package]]
-name = "once_cell"
-version = "1.21.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
-
-[[package]]
-name = "proc-macro2"
-version = "1.0.95"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
-dependencies = [
- "unicode-ident",
-]
-
-[[package]]
-name = "quote"
-version = "1.0.40"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
-dependencies = [
- "proc-macro2",
-]
-
-[[package]]
-name = "ryu"
-version = "1.0.20"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
-
-[[package]]
-name = "serde"
-version = "1.0.219"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
-dependencies = [
- "serde_derive",
-]
-
-[[package]]
-name = "serde_derive"
-version = "1.0.219"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "serde_json"
-version = "1.0.140"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373"
-dependencies = [
- "itoa",
- "memchr",
- "ryu",
- "serde",
-]
-
-[[package]]
-name = "syn"
-version = "2.0.101"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf"
-dependencies = [
- "proc-macro2",
- "quote",
- "unicode-ident",
-]
-
-[[package]]
-name = "unicode-ident"
-version = "1.0.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
-
-[[package]]
-name = "unicode-segmentation"
-version = "1.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
diff --git a/aline/Cargo.toml b/aline/Cargo.toml
deleted file mode 100644
index d829946..0000000
--- a/aline/Cargo.toml
+++ /dev/null
@@ -1,10 +0,0 @@
-[package]
-name = "aline"
-version = "0.1.0"
-edition = "2024"
-
-[dependencies]
-once_cell = "1.21.3"
-serde = { version = "1.0.219", features = ["derive"] }
-serde_json = "1.0.140"
-unicode-segmentation = "1.12.0"
diff --git a/aline-demo/src/main.rs b/src/bin/aline-demo/main.rs
index 7844066..7844066 100644
--- a/aline-demo/src/main.rs
+++ b/src/bin/aline-demo/main.rs
diff --git a/aline/src/constants.rs b/src/constants.rs
index 83e11a1..83e11a1 100644
--- a/aline/src/constants.rs
+++ b/src/constants.rs
diff --git a/aline/src/extract.json b/src/extract.json
index db9d2cf..db9d2cf 100644
--- a/aline/src/extract.json
+++ b/src/extract.json
diff --git a/aline/src/extract.py b/src/extract.py
index b2faba5..b2faba5 100755
--- a/aline/src/extract.py
+++ b/src/extract.py
diff --git a/aline/src/lib.rs b/src/lib.rs
index e79e040..e79e040 100644
--- a/aline/src/lib.rs
+++ b/src/lib.rs
diff --git a/aline/src/test.rs b/src/test.rs
index 633153a..633153a 100644
--- a/aline/src/test.rs
+++ b/src/test.rs