1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2020 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.

use {
    anyhow::Error, fuchsia_async as fasync, fuchsia_component::server::ServiceFs,
    futures::StreamExt,
};

fn main() -> Result<(), Error> {
    let mut executor = fasync::LocalExecutor::new();
    let mut fs = ServiceFs::new_local();
    // don't publish  suite service
    fs.take_and_serve_directory_handle()?;
    executor.run_singlethreaded(fs.collect::<()>());
    Ok(())
}