Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apis: organize into folders #546

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,28 @@ rust_embedded = [
]

[dependencies]
libtock_adc = { path = "apis/adc" }
libtock_air_quality = { path = "apis/air_quality" }
libtock_alarm = { path = "apis/alarm" }
libtock_ambient_light = { path = "apis/ambient_light" }
libtock_buttons = { path = "apis/buttons" }
libtock_buzzer = { path = "apis/buzzer" }
libtock_console = { path = "apis/console" }
libtock_adc = { path = "apis/peripherals/adc" }
libtock_air_quality = { path = "apis/sensors/air_quality" }
libtock_alarm = { path = "apis/peripherals/alarm" }
libtock_ambient_light = { path = "apis/sensors/ambient_light" }
libtock_buttons = { path = "apis/interface/buttons" }
libtock_buzzer = { path = "apis/interface/buzzer" }
libtock_console = { path = "apis/interface/console" }
libtock_debug_panic = { path = "panic_handlers/debug_panic" }
libtock_gpio = { path = "apis/gpio" }
libtock_i2c_master = { path = "apis/i2c_master" }
libtock_i2c_master_slave = { path = "apis/i2c_master_slave" }
libtock_key_value = { path = "apis/key_value" }
libtock_leds = { path = "apis/leds" }
libtock_low_level_debug = { path = "apis/low_level_debug" }
libtock_ninedof = { path = "apis/ninedof" }
libtock_gpio = { path = "apis/peripherals/gpio" }
libtock_i2c_master = { path = "apis/peripherals/i2c_master" }
libtock_i2c_master_slave = { path = "apis/peripherals/i2c_master_slave" }
libtock_key_value = { path = "apis/storage/key_value" }
libtock_leds = { path = "apis/interface/leds" }
libtock_low_level_debug = { path = "apis/kernel/low_level_debug" }
libtock_ninedof = { path = "apis/sensors/ninedof" }
libtock_platform = { path = "platform" }
libtock_proximity = { path = "apis/proximity" }
libtock_rng = { path = "apis/rng" }
libtock_proximity = { path = "apis/sensors/proximity" }
libtock_rng = { path = "apis/peripherals/rng" }
libtock_runtime = { path = "runtime" }
libtock_sound_pressure = { path = "apis/sound_pressure" }
libtock_spi_controller = { path = "apis/spi_controller" }
libtock_temperature = { path = "apis/temperature" }
libtock_sound_pressure = { path = "apis/sensors/sound_pressure" }
libtock_spi_controller = { path = "apis/peripherals/spi_controller" }
libtock_temperature = { path = "apis/sensors/temperature" }

embedded-hal = { version = "1.0", optional = true }

Expand All @@ -64,23 +64,23 @@ panic = "abort"
[workspace]
exclude = ["tock"]
members = [
"apis/adc",
"apis/air_quality",
"apis/alarm",
"apis/ambient_light",
"apis/buttons",
"apis/buzzer",
"apis/console",
"apis/gpio",
"apis/i2c_master",
"apis/i2c_master_slave",
"apis/key_value",
"apis/leds",
"apis/low_level_debug",
"apis/ninedof",
"apis/proximity",
"apis/rng",
"apis/temperature",
"apis/interface/buttons",
"apis/interface/buzzer",
"apis/interface/console",
"apis/interface/leds",
"apis/kernel/low_level_debug",
"apis/peripherals/adc",
"apis/peripherals/alarm",
"apis/peripherals/gpio",
"apis/peripherals/i2c_master",
"apis/peripherals/i2c_master_slave",
"apis/peripherals/rng",
"apis/sensors/air_quality",
"apis/sensors/ambient_light",
"apis/sensors/ninedof",
"apis/sensors/proximity",
"apis/sensors/temperature",
"apis/storage/key_value",
"panic_handlers/debug_panic",
"panic_handlers/small_panic",
"platform",
Expand Down
4 changes: 2 additions & 2 deletions apis/buttons/Cargo.toml → apis/interface/buttons/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rust-version.workspace = true
description = "libtock buttons driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions apis/buzzer/Cargo.toml → apis/interface/buzzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rust-version.workspace = true
description = "libtock buzzer driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions apis/console/Cargo.toml → apis/interface/console/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version.workspace = true
description = "libtock console driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions apis/leds/Cargo.toml → apis/interface/leds/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rust-version.workspace = true
description = "libtock leds driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rust-version.workspace = true
description = "libtock low-level debug drivers"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
4 changes: 2 additions & 2 deletions apis/adc/Cargo.toml → apis/peripherals/adc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rust-version.workspace = true
description = "libtock adc driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions apis/alarm/Cargo.toml → apis/peripherals/alarm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version.workspace = true
description = "libtock alarm driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions apis/gpio/Cargo.toml → apis/peripherals/gpio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ description = "libtock gpio driver"
rust_embedded = ["embedded-hal"]

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }
embedded-hal = { version = "1.0", optional = true }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ rust-version.workspace = true
description = "libtock I2C master driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ rust-version.workspace = true
description = "libtock I2C master-slave driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

4 changes: 2 additions & 2 deletions apis/rng/Cargo.toml → apis/peripherals/rng/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version.workspace = true
description = "libtock rng driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ rust-version.workspace = true
description = "libtock SPI controller driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rust-version.workspace = true
description = "libtock air quality driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rust-version.workspace = true
description = "libtock ambient light driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
4 changes: 2 additions & 2 deletions apis/ninedof/Cargo.toml → apis/sensors/ninedof/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ rust-version.workspace = true
description = "libtock nine degrees of freedom driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }
libm = "0.2.7"

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ rust-version.workspace = true
description = "libtock proximity driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rust-version.workspace = true
description = "libtock sound pressure driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rust-version.workspace = true
description = "libtock temperature driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository = "https://github.com/tock/libtock-rs"
description = "libtock key-value driver"

[dependencies]
libtock_platform = { path = "../../platform" }
libtock_platform = { path = "../../../platform" }

[dev-dependencies]
libtock_unittest = { path = "../../unittest" }
libtock_unittest = { path = "../../../unittest" }
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions panic_handlers/debug_panic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/tock/libtock-rs"
rust-version.workspace = true

[dependencies]
libtock_console = { path = "../../apis/console" }
libtock_low_level_debug = { path = "../../apis/low_level_debug" }
libtock_console = { path = "../../apis/interface/console" }
libtock_low_level_debug = { path = "../../apis/kernel/low_level_debug" }
libtock_platform = { path = "../../platform" }
libtock_runtime = { path = "../../runtime" }
2 changes: 1 addition & 1 deletion panic_handlers/small_panic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ repository = "https://github.com/tock/libtock-rs"
rust-version.workspace = true

[dependencies]
libtock_low_level_debug = { path = "../../apis/low_level_debug" }
libtock_low_level_debug = { path = "../../apis/kernel/low_level_debug" }
libtock_platform = { path = "../../platform" }
libtock_runtime = { path = "../../runtime" }
Loading