CAN, GPIO, RNG vhost-devices for virtio-loopback [v6]
[AGL/meta-agl-devel.git] / meta-egvirt / recipes-extended / vhost-device-can / vhost-device-can-0.1.0 / src / main.rs
1 // VIRTIO CAN Emulation via vhost-user
2 //
3 // Copyright 2023 VIRTUAL OPEN SYSTEMS SAS. All Rights Reserved.
4 //          Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
5 //
6 // SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause
7
8 #[cfg(target_env = "gnu")]
9 mod backend;
10 #[cfg(target_env = "gnu")]
11 mod can;
12 #[cfg(target_env = "gnu")]
13 mod vhu_can;
14
15 #[cfg(target_env = "gnu")]
16 fn main() {
17         println!("Hello to main vhost-user-can");
18     backend::can_init()
19 }
20
21 // Rust vmm container (https://github.com/rust-vmm/rust-vmm-container) doesn't
22 // have tools to do a musl build at the moment, and adding that support is
23 // tricky as well to the container. Skip musl builds until the time pre-built
24 // libgpiod library is available for musl.
25 #[cfg(target_env = "musl")]
26 fn main() {}