2020-11-28 15:14:50 +03:00
|
|
|
[package]
|
|
|
|
name = "obsidian-export"
|
2023-12-03 19:38:24 +03:00
|
|
|
version = "23.12.0"
|
2020-11-28 15:14:50 +03:00
|
|
|
authors = ["Nick Groenen <nick@groenen.me>"]
|
|
|
|
edition = "2018"
|
2023-12-03 19:44:41 +03:00
|
|
|
license = "BSD-2-Clause-Patent"
|
2020-11-28 15:14:50 +03:00
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://github.com/zoni/obsidian-export"
|
|
|
|
documentation = "https://docs.rs/obsidian-export"
|
|
|
|
description = """
|
|
|
|
Rust library and associated CLI program to export an Obsidian vault to regular Markdown.
|
|
|
|
"""
|
|
|
|
categories = ["command-line-utilities", "text-processing"]
|
|
|
|
keywords = ["markdown", "obsidian"]
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "obsidian_export"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "obsidian-export"
|
|
|
|
path = "src/main.rs"
|
2021-09-12 15:42:07 +03:00
|
|
|
doc = false
|
2020-11-28 15:14:50 +03:00
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2024-06-23 16:23:57 +03:00
|
|
|
eyre = "0.6.12"
|
2022-11-05 16:20:24 +03:00
|
|
|
gumdrop = "0.8.1"
|
2024-06-23 16:23:57 +03:00
|
|
|
ignore = "0.4.22"
|
2021-10-06 20:38:25 +03:00
|
|
|
pathdiff = "0.2.1"
|
2023-11-27 22:29:34 +03:00
|
|
|
percent-encoding = "2.3.1"
|
2024-08-25 14:36:21 +03:00
|
|
|
pulldown-cmark = "0.12.0"
|
|
|
|
pulldown-cmark-to-cmark = "16.0.0"
|
2024-03-25 22:55:05 +03:00
|
|
|
rayon = "1.10.0"
|
2024-06-23 16:23:57 +03:00
|
|
|
regex = "1.10.5"
|
2024-03-25 22:55:20 +03:00
|
|
|
serde_yaml = "0.9.34"
|
2023-11-06 22:58:05 +03:00
|
|
|
slug = "0.1.5"
|
2024-06-23 16:23:57 +03:00
|
|
|
snafu = "0.8.3"
|
|
|
|
unicode-normalization = "0.1.23"
|
2023-12-29 08:27:02 +03:00
|
|
|
filetime = "0.2.23"
|
2020-11-28 15:14:50 +03:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-09-22 12:31:11 +03:00
|
|
|
pretty_assertions = "1.4.0"
|
2024-06-23 16:29:50 +03:00
|
|
|
rstest = "0.21.0"
|
2024-06-23 16:23:57 +03:00
|
|
|
tempfile = "3.10.1"
|
2024-03-04 22:02:15 +03:00
|
|
|
walkdir = "2.5.0"
|
2023-12-03 16:06:02 +03:00
|
|
|
|
|
|
|
# The profile that 'cargo dist' will build with
|
|
|
|
[profile.dist]
|
|
|
|
inherits = "release"
|
|
|
|
lto = "thin"
|
|
|
|
|
|
|
|
# Config for 'cargo dist'
|
|
|
|
[workspace.metadata.dist]
|
|
|
|
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
|
|
|
|
cargo-dist-version = "0.4.3"
|
|
|
|
# CI backends to support
|
|
|
|
ci = ["github"]
|
|
|
|
# The installers to generate for each app
|
|
|
|
installers = ["shell", "powershell"]
|
|
|
|
# Target platforms to build apps for (Rust target-triple syntax)
|
|
|
|
targets = [
|
|
|
|
#"aarch64-unknown-linux-gnu", # Not yet supported (2023-12-03)
|
|
|
|
"x86_64-unknown-linux-gnu",
|
|
|
|
#"x86_64-unknown-linux-musl",
|
|
|
|
"aarch64-apple-darwin",
|
|
|
|
"x86_64-apple-darwin",
|
|
|
|
# "aarch64-pc-windows-msvc",, # Not yet supported (2023-12-03)
|
|
|
|
"x86_64-pc-windows-msvc",
|
|
|
|
]
|
|
|
|
unix-archive = ".tar.xz"
|
|
|
|
windows-archive = ".zip"
|
|
|
|
# Publish jobs to run in CI
|
|
|
|
pr-run-mode = "plan"
|
|
|
|
# Publish jobs to run in CI
|
|
|
|
publish-jobs = ["./publish-crate"]
|
2024-08-02 19:46:17 +03:00
|
|
|
|
|
|
|
[lints.rust]
|
|
|
|
nonstandard_style = { level = "warn", priority = -1 }
|
|
|
|
rust_2018_idioms = { level = "warn", priority = -1 }
|
|
|
|
rust_2024_compatibility = { level = "warn", priority = -1 }
|
|
|
|
|
|
|
|
noop_method_call = "warn"
|
|
|
|
redundant-lifetimes = "warn"
|
|
|
|
unsafe_op_in_unsafe_fn = "warn"
|
|
|
|
unused_qualifications = "warn"
|
|
|
|
|
|
|
|
[lints.clippy]
|
|
|
|
pedantic = { level = "warn", priority = -1 }
|
|
|
|
nursery = { level = "warn", priority = -1 }
|
|
|
|
|
|
|
|
# Should probably change these back to warn in the future, but it's a
|
|
|
|
# low-priority issue for me at the moment.
|
|
|
|
missing_errors_doc = "allow"
|
|
|
|
missing_panics_doc = "allow"
|
|
|
|
|
|
|
|
# These lints from the pedantic group are actually too pedantic for my taste:
|
|
|
|
match_bool = "allow"
|
|
|
|
similar_names = "allow"
|
|
|
|
string-add = "allow"
|
|
|
|
|
|
|
|
# Enable select lints from the 'restriction' group (which is not meant to be
|
|
|
|
# enabled as a whole)
|
|
|
|
arithmetic_side_effects = "warn"
|
|
|
|
as_conversions = "warn"
|
|
|
|
assertions_on_result_states = "warn"
|
|
|
|
clone_on_ref_ptr = "warn"
|
|
|
|
dbg_macro = "warn"
|
|
|
|
default_numeric_fallback = "warn"
|
|
|
|
else_if_without_else = "warn"
|
|
|
|
empty_enum_variants_with_brackets = "warn"
|
|
|
|
error_impl_error = "warn"
|
|
|
|
exhaustive_enums = "warn"
|
|
|
|
exhaustive_structs = "warn"
|
|
|
|
filetype_is_file = "warn"
|
|
|
|
float_cmp_const = "warn"
|
|
|
|
fn_to_numeric_cast_any = "warn"
|
|
|
|
if_then_some_else_none = "warn"
|
|
|
|
impl_trait_in_params = "warn"
|
|
|
|
indexing_slicing = "warn"
|
|
|
|
infinite_loop = "warn"
|
|
|
|
integer_division = "warn"
|
|
|
|
large_include_file = "warn"
|
|
|
|
lossy_float_literal = "warn"
|
|
|
|
map_err_ignore = "warn"
|
|
|
|
mem_forget = "warn"
|
|
|
|
multiple_inherent_impl = "warn"
|
|
|
|
multiple_unsafe_ops_per_block = "warn"
|
|
|
|
panic_in_result_fn = "warn"
|
|
|
|
rc_buffer = "warn"
|
|
|
|
rc_mutex = "warn"
|
|
|
|
redundant_type_annotations = "warn"
|
|
|
|
same_name_method = "warn"
|
|
|
|
self_named_module_files = "warn"
|
|
|
|
shadow_unrelated = "warn"
|
|
|
|
str_to_string = "warn"
|
|
|
|
string_add = "warn"
|
|
|
|
string_slice = "warn"
|
|
|
|
string_to_string = "warn"
|
|
|
|
suspicious_xor_used_as_pow = "warn"
|
|
|
|
todo = "warn"
|
|
|
|
try_err = "warn"
|
|
|
|
undocumented_unsafe_blocks = "warn"
|
|
|
|
unneeded_field_pattern = "warn"
|
|
|
|
unseparated_literal_suffix = "warn"
|
|
|
|
vec_init_then_push = "warn"
|
|
|
|
#expect_used = "warn"
|
|
|
|
#missing_docs_in_private_items = "warn"
|
|
|
|
#missing_inline_in_public_items = "warn"
|
|
|
|
#pathbuf_init_then_push = "warn" # Rust 1.81.0+
|
|
|
|
#renamed_function_params = "warn" # Rust 1.80.0+
|
|
|
|
#unwrap_in_result = "warn"
|
|
|
|
#unwrap_used = "warn"
|
|
|
|
#wildcard_enum_match_arm = "warn"
|