anki/rslib/sync/main.rs
2023-07-02 18:22:44 +10:00

15 lines
406 B
Rust

// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
use std::env;
use anki::log::set_global_logger;
use anki::sync::http_server::SimpleServer;
fn main() {
if env::var("RUST_LOG").is_err() {
env::set_var("RUST_LOG", "anki=info")
}
set_global_logger(None).unwrap();
println!("{}", SimpleServer::run());
}