From 2531f1b8bda60780c440903b1c2d6d8cf2ebd784 Mon Sep 17 00:00:00 2001 From: morgan Date: Fri, 4 Oct 2024 16:01:32 +0800 Subject: [PATCH] Cargo: add byteorder --- src/libboard_artiq/Cargo.toml.tpl | 1 + src/libboard_artiq/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libboard_artiq/Cargo.toml.tpl b/src/libboard_artiq/Cargo.toml.tpl index 995fc05..7d533ec 100644 --- a/src/libboard_artiq/Cargo.toml.tpl +++ b/src/libboard_artiq/Cargo.toml.tpl @@ -23,6 +23,7 @@ core_io = { version = "0.1", features = ["collections"] } embedded-hal = "0.2" nb = "1.0" void = { version = "1", default-features = false } +byteorder = { version = "1.3", default-features = false } io = { path = "../libio", features = ["byteorder"] } libboard_zynq = { path = "@@ZYNQ_RS@@/libboard_zynq" } diff --git a/src/libboard_artiq/src/lib.rs b/src/libboard_artiq/src/lib.rs index 70c4cb6..02525b3 100644 --- a/src/libboard_artiq/src/lib.rs +++ b/src/libboard_artiq/src/lib.rs @@ -3,6 +3,7 @@ #![feature(naked_functions)] #![feature(asm)] +extern crate byteorder; extern crate core_io; extern crate crc; extern crate embedded_hal;