summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavagePeanut <sourcehut@lazytapir.com>2023-07-30 15:53:19 -0500
committerSavagePeanut <sourcehut@lazytapir.com>2023-07-30 16:13:54 -0500
commitabd8ad5fd2c1e014633ccd83fd0f4de01b5e7a28 (patch)
treea98de62624a42cd076d81d7e5772bad0443a59a3
parentf290f20011d6ccafe8a4f0adaaab0c157a2c0107 (diff)
rename to slidge_style_parser
-rw-r--r--Cargo.lock14
-rw-r--r--Cargo.toml4
-rw-r--r--pyproject.toml2
-rw-r--r--src/lib.rs2
-rw-r--r--tests/test_style_parser.py2
5 files changed, 12 insertions, 12 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 48915a3..69ca878 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -174,19 +174,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
-name = "smallvec"
-version = "1.11.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9"
-
-[[package]]
-name = "style-parser"
+name = "slidge-style-parser"
version = "0.1.0"
dependencies = [
"pyo3",
]
[[package]]
+name = "smallvec"
+version = "1.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9"
+
+[[package]]
name = "syn"
version = "1.0.109"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index bed67eb..ad8be8b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,11 +1,11 @@
[package]
-name = "style-parser"
+name = "slidge-style-parser"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
-name = "style_parser"
+name = "slidge_style_parser"
crate-type = ["cdylib"]
[dependencies]
diff --git a/pyproject.toml b/pyproject.toml
index 7e6eee5..f2aeb35 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,7 +3,7 @@ requires = ["maturin>=0.14,<0.15"]
build-backend = "maturin"
[project]
-name = "style-parser"
+name = "slidge-style-parser"
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Rust",
diff --git a/src/lib.rs b/src/lib.rs
index f728b7c..35ebc12 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -211,7 +211,7 @@ fn get_block_indicator_size(keyword: char) -> usize {
}
#[pymodule]
-fn style_parser(_py: Python, m: &PyModule) -> PyResult<()> {
+fn slidge_style_parser(_py: Python, m: &PyModule) -> PyResult<()> {
m.add_function(wrap_pyfunction!(format_body, m)?)?;
Ok(())
}
diff --git a/tests/test_style_parser.py b/tests/test_style_parser.py
index 49f838b..f78f866 100644
--- a/tests/test_style_parser.py
+++ b/tests/test_style_parser.py
@@ -1,4 +1,4 @@
-from style_parser import format_body
+from slidge_style_parser import format_body
MATRIX_FORMATS = {
"_": ("<em>", "</em>"),