Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76919dc1f4 | ||
|
|
0f1ea00800 | ||
|
|
5ab8fe2ccd | ||
|
|
68b4780181 | ||
|
|
7170a9853a | ||
|
|
5a21dd3a16 |
+4
-4
@@ -1,10 +1,10 @@
|
||||
[package]
|
||||
name = "md_to_html"
|
||||
version = "0.0.1"
|
||||
name = "md-to-html"
|
||||
version = "0.0.3"
|
||||
edition = "2021"
|
||||
repository = "https://git.stancik.work/lusk/md-to-html"
|
||||
repository = "https://git.stancik.cz/lusk/md-to-html"
|
||||
description = "Markdown to HTML converter"
|
||||
authors = ["Sokhibjon Orzikulov <orzklv.uz>", "Lukas Stancik <lukas.stancik.work>"]
|
||||
authors = ["Sokhibjon Orzikulov <orzklv.uz>", "Lukas Stancik <lukas.stancik.cz>"]
|
||||
readme = "README.md"
|
||||
license = "GPL-3.0"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ clean:
|
||||
rm -f Cargo.lock
|
||||
|
||||
init:
|
||||
-git clone https://git.stancik.work/lusk/markdown-rs.git
|
||||
-git clone https://git.stancik.cz/lusk/markdown-rs.git
|
||||
|
||||
release/build: init
|
||||
docker run --rm -it \
|
||||
@@ -16,6 +16,12 @@ release/build: init
|
||||
-v "${PWD}/markdown-rs":/home/rust/markdown-rs \
|
||||
messense/rust-musl-cross:x86_64-musl /bin/sh -c "cargo build --release && chown -R ${SELF_UID}:${SELF_GID} target"
|
||||
|
||||
release/arm64: init
|
||||
docker run --rm -it \
|
||||
-v "${PWD}":/home/rust/src \
|
||||
-v "${PWD}/markdown-rs":/home/rust/markdown-rs \
|
||||
messense/rust-musl-cross:aarch64-musl /bin/sh -c "cargo build --release && chown -R ${SELF_UID}:${SELF_GID} target"
|
||||
|
||||
debug/build: init
|
||||
@docker run --rm -it \
|
||||
-v "${PWD}":/home/rust/src \
|
||||
@@ -23,11 +29,11 @@ debug/build: init
|
||||
messense/rust-musl-cross:x86_64-musl /bin/sh -c "cargo build && chown -R ${SELF_UID}:${SELF_GID} target"
|
||||
|
||||
release/install: release/build
|
||||
@cp target/x86_64-unknown-linux-musl/release/md_to_html ~/.local/bin/md_to_html
|
||||
@cp target/x86_64-unknown-linux-musl/release/md-to-html ~/.local/bin/md-to-html
|
||||
|
||||
debug/install: debug/build
|
||||
@cp target/x86_64-unknown-linux-musl/debug/md_to_html ~/.local/bin/md_to_html
|
||||
@cp target/x86_64-unknown-linux-musl/debug/md-to-html ~/.local/bin/md-to-html
|
||||
|
||||
run:
|
||||
@RUST_LOG=debug md_to_html convert --file test/page.md --to /tmp/test-output.html
|
||||
@RUST_LOG=debug md-to-html convert --file test/page.md --to /tmp/test-output.html
|
||||
@bat /tmp/test-output.html
|
||||
|
||||
Reference in New Issue
Block a user