Skip to content

Commit

Permalink
updte doku to 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Oct 5, 2021
1 parent 009cad5 commit 73483eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ activitystreams = "0.7.0-alpha.11"
actix-rt = { version = "2.2.0", default-features = false }
serde_json = { version = "1.0.68", features = ["preserve_order"] }
clokwerk = "0.3.5"
doku = { git = "https://github.com/anixe/doku", branch = "v0.10" }
doku = "0.10"

[dev-dependencies.cargo-husky]
version = "1.5.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ deser-hjson = "1.0.2"
smart-default = "0.6.0"
webpage = { version = "1.3.0", default-features = false, features = ["serde"] }
jsonwebtoken = "7.2.0"
doku = { git = "https://github.com/anixe/doku", branch = "v0.10" }
doku = "0.10"
5 changes: 3 additions & 2 deletions crates/utils/src/settings/structs.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use doku::prelude::*;
use doku::Document;
use serde::{Deserialize, Serialize};
use std::net::{IpAddr, Ipv4Addr};

Expand Down Expand Up @@ -109,7 +109,8 @@ pub struct FederationConfig {
///
/// list of instances with which federation is allowed
#[default(None)]
#[doku(example = "[\"instance1.tld\",\"instance2.tld\"]")]
#[doku(example = "instance1.tld")]
#[doku(example = "instance2.tld")]
pub allowed_instances: Option<Vec<String>>,
/// Instances which we never federate anything with (but previously federated objects are unaffected)
#[default(None)]
Expand Down

0 comments on commit 73483eb

Please sign in to comment.