From a09f8a1249f547fad5296688bbd2e8837482abeb Mon Sep 17 00:00:00 2001 From: Ivan Arkhipov Date: Sat, 30 Mar 2024 23:46:00 +0300 Subject: [PATCH] Using martos from crates.io --- README.md | 4 +++- c-library/xtensa-esp32/Cargo.lock | 3 ++- c-library/xtensa-esp32/Cargo.toml | 3 +-- examples/rust-examples/xtensa-esp32/Cargo.toml | 3 +-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0904aad..8dd6d2a 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,13 @@ Developers have the flexibility to write software for Martos using either Rust ( In its current version, Martos features a basic task manager and timer counter. +See Martos releases on [crates.io](https://crates.io/crates/martos). + ## Programming in Rust To develop software in Rust, you have the option to incorporate the Martos as a dependency: ``` [dependencies] -martos = { git = "https://github.com/IvanArkhipov1999/Martos" } +martos = "0.1.0" ``` You can explore a variety of Rust examples showcasing different architectures in the ['examples/rust-examples'](https://github.com/IvanArkhipov1999/Martos/tree/main/examples/rust-examples) directory. diff --git a/c-library/xtensa-esp32/Cargo.lock b/c-library/xtensa-esp32/Cargo.lock index 8237b6f..9c53ca7 100644 --- a/c-library/xtensa-esp32/Cargo.lock +++ b/c-library/xtensa-esp32/Cargo.lock @@ -419,7 +419,8 @@ dependencies = [ [[package]] name = "martos" version = "0.1.0" -source = "git+https://github.com/IvanArkhipov1999/Martos#2373ba77307e94c1207e31b94e03d8735090171c" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71243a0e59c88eaa0f48dc8019c870ed644c7c33ea7f530f74cd70a1567f055a" [[package]] name = "memchr" diff --git a/c-library/xtensa-esp32/Cargo.toml b/c-library/xtensa-esp32/Cargo.toml index 9872d6a..e9edf85 100644 --- a/c-library/xtensa-esp32/Cargo.toml +++ b/c-library/xtensa-esp32/Cargo.toml @@ -11,8 +11,7 @@ crate-type = ["staticlib"] debug = true [dependencies] -# TODO: path should be from git, then from crates.io -martos = { git = "https://github.com/IvanArkhipov1999/Martos", features = ["c-library"] } +martos = { version = "0.1.0", features = ["c-library"] } esp32-hal = "0.18.0" esp-backtrace = { version = "0.11.0", features = ["esp32", "panic-handler", "exception-handler", "println"] } esp-println = { version = "0.9.0", features = ["esp32"] } diff --git a/examples/rust-examples/xtensa-esp32/Cargo.toml b/examples/rust-examples/xtensa-esp32/Cargo.toml index 16c28e4..040a6b5 100644 --- a/examples/rust-examples/xtensa-esp32/Cargo.toml +++ b/examples/rust-examples/xtensa-esp32/Cargo.toml @@ -7,8 +7,7 @@ edition = "2021" debug = true [dependencies] -# TODO: path should be from git, then from crates.io -martos = { git = "https://github.com/IvanArkhipov1999/Martos" } +martos = "0.1.0" esp32-hal = "0.18.0" esp-backtrace = { version = "0.11.0", features = ["esp32", "panic-handler", "exception-handler", "println"] } esp-println = { version = "0.9.0", features = ["esp32"] }