1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

//! A networking stack.
#![deny(missing_docs, unreachable_patterns, unused)]
#![recursion_limit = "256"]
#![allow(incomplete_features)]
#![feature(async_fn_in_trait)]

#[cfg(feature = "instrumented")]
extern crate netstack3_core_instrumented as netstack3_core;

mod bindings;

use bindings::NetstackSeed;

#[fuchsia::main(logging_minimum_severity = "debug")]
fn main() -> Result<(), anyhow::Error> {
    let mut executor = fuchsia_async::LocalExecutor::new();

    let seed = NetstackSeed::default();
    executor.run_singlethreaded(seed.serve())
}