Crates.io | vimwiki-server |
lib.rs | vimwiki-server |
version | 0.1.0 |
source | src |
created_at | 2020-09-14 02:02:41.706882 |
updated_at | 2021-06-06 23:30:57.112842 |
description | Daemon that supports parsing and modifying vimwiki files. |
homepage | https://github.com/chipsenkbeil/vimwiki-rs |
repository | https://github.com/chipsenkbeil/vimwiki-rs |
max_upload_size | |
id | 288430 |
size | 287,740 |
Provides graphql server to inspect and manipulate vimwiki files.
While this was supposed to be named vimwiki_server
, it accidentally was
published as vimwiki-server
and now we're stuck with that name. :/
Download a binary and place in your path.
Or, install using cargo:
cargo install vimwiki-server
Add this to your Cargo.toml
:
[dependencies]
vimwiki-server = "0.1"
Running the binary from the command line with http://127.0.0.1/graphiql enabled:
vimwiki-server --graphiql
Embedding and running the server from your own binary:
use vimwiki_server::{Config, Opt, Program};
#[tokio::main]
async fn main() {
// Load configuration for the server from the CLI arguments
let opt = Opt::load();
// Read in a config file (or default config) for use by server
let config = Config::load(&opt).unwrap();
// Start the server program
Program::run(opt, config)
.await
.expect("Server failed unexpectedly");
}
This project is licensed under either of
Apache License, Version 2.0, (LICENSE-APACHE or apache-license) MIT license (LICENSE-MIT or mit-license) at your option.