mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 04:41:19 +00:00
Nutomic
328a48c9f5
* Remove error-type feature from lemmy-utils * fixes --------- Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
24 lines
643 B
Rust
24 lines
643 B
Rust
use cfg_if::cfg_if;
|
|
|
|
fn main() {
|
|
cfg_if! {
|
|
if #[cfg(feature = "full")] {
|
|
use doku::json::{AutoComments, CommentsStyle, Formatting, ObjectsStyle};
|
|
use lemmy_utils::settings::structs::Settings;
|
|
let fmt = Formatting {
|
|
auto_comments: AutoComments::none(),
|
|
comments_style: CommentsStyle {
|
|
separator: "#".to_owned(),
|
|
},
|
|
objects_style: ObjectsStyle {
|
|
surround_keys_with_quotes: false,
|
|
use_comma_as_separator: false,
|
|
},
|
|
..Default::default()
|
|
};
|
|
println!("{}", doku::to_json_fmt_val(&fmt, &Settings::default()));
|
|
} else {
|
|
|
|
}
|
|
}
|
|
}
|