2024-01-30 17:19:34 +01:00
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2023-11-13 22:20:50 +01:00
|
|
|
use chorus::instance::Instance;
|
|
|
|
|
2023-11-18 18:39:01 +01:00
|
|
|
#[tokio::main(flavor = "current_thread")]
|
2023-11-13 22:20:50 +01:00
|
|
|
async fn main() {
|
2023-12-15 00:10:33 +01:00
|
|
|
let instance = Instance::new("https://example.com/")
|
2023-11-13 22:20:50 +01:00
|
|
|
.await
|
|
|
|
.expect("Failed to connect to the Spacebar server");
|
|
|
|
dbg!(instance.instance_info);
|
|
|
|
dbg!(instance.limits_information);
|
|
|
|
}
|