+++ /dev/null
-# This file is automatically @generated by Cargo.
-# It is not intended for manual editing.
-version = 3
-
-[[package]]
-name = "ch3-cubsat-ground-station"
-version = "0.1.0"
+++ /dev/null
-[package]
-name = "ch3-cubsat-ground-station"
-version = "0.1.0"
-edition = "2018"
-
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
-[dependencies]
+++ /dev/null
-#![cfg_attr(debug_assertions, allow(unused_variables, dead_code))]
-
-use std::cell::RefCell;
-use std::rc::Rc;
-
-type Message = String;
-
-#[derive(Debug)]
-enum StatusMessage {
- Ok,
-}
-
-#[derive(Debug)]
-struct Mailbox {
- messages: Vec<Message>,
-}
-
-#[derive(Debug)]
-struct CubeSat {
- id: u64,
- mailbox: Mailbox,
-}
-
-#[derive(Debug)]
-struct GroundStation {
- radio_freq: f64 // [MHz].
-}
-
-fn check_status(sat_id: &CubeSat) -> StatusMessage {
- StatusMessage::Ok
-}
-
-fn main() {
- let base: Rc<RefCell<GroundStation>> =
- Rc::new(
- RefCell::new(
- GroundStation { radio_freq: 42.1 }
- )
- );
-
- println!("base: {:?}", base);
-}
--- /dev/null
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "ch3-cubsat-ground-station"
+version = "0.1.0"
--- /dev/null
+[package]
+name = "ch3-cubsat-ground-station"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
--- /dev/null
+#![cfg_attr(debug_assertions, allow(unused_variables, dead_code))]
+
+use std::cell::RefCell;
+use std::rc::Rc;
+
+type Message = String;
+
+#[derive(Debug)]
+enum StatusMessage {
+ Ok,
+}
+
+#[derive(Debug)]
+struct Mailbox {
+ messages: Vec<Message>,
+}
+
+#[derive(Debug)]
+struct CubeSat {
+ id: u64,
+ mailbox: Mailbox,
+}
+
+#[derive(Debug)]
+struct GroundStation {
+ radio_freq: f64 // [MHz].
+}
+
+fn check_status(sat_id: &CubeSat) -> StatusMessage {
+ StatusMessage::Ok
+}
+
+fn main() {
+ let base: Rc<RefCell<GroundStation>> =
+ Rc::new(
+ RefCell::new(
+ GroundStation { radio_freq: 42.1 }
+ )
+ );
+
+ println!("base: {:?}", base);
+}
[package]
name = "ch5-data-in-depth"
version = "0.1.0"
-edition = "2018"
+edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html