Skip to content

Commit 4976fe3

Browse files
committed
refactor: full rename edhoc -> lakers for ead
1 parent c7b309a commit 4976fe3

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
members = [
44
"lib",
55
"ead",
6-
"ead/edhoc-ead-none",
7-
"ead/edhoc-ead-zeroconf",
6+
"ead/lakers-ead-none",
7+
"ead/lakers-ead-zeroconf",
88
"crypto",
99
"crypto/lakers-crypto-cc2538",
1010
"crypto/lakers-crypto-hacspec",
@@ -41,9 +41,9 @@ license = "BSD-3-Clause"
4141
[workspace.dependencies]
4242

4343
lakers-shared = { package = "lakers-shared", path = "shared/", version = "^0.4.0-alpha.1" }
44-
edhoc-ead = { package = "lakers-ead-dispatch", path = "ead/", version = "^0.4.0-alpha.1", default-features = false }
45-
edhoc-ead-none = { package = "lakers-ead-none", path = "ead/edhoc-ead-none/", version = "^0.4.0-alpha.1" }
46-
edhoc-ead-zeroconf = { package = "lakers-ead-zeroconf", path = "ead/edhoc-ead-zeroconf/", version = "^0.4.0-alpha.1" }
44+
lakers-ead = { package = "lakers-ead-dispatch", path = "ead/", version = "^0.4.0-alpha.1", default-features = false }
45+
lakers-ead-none = { package = "lakers-ead-none", path = "ead/lakers-ead-none/", version = "^0.4.0-alpha.1" }
46+
lakers-ead-zeroconf = { package = "lakers-ead-zeroconf", path = "ead/lakers-ead-zeroconf/", version = "^0.4.0-alpha.1" }
4747
lakers-crypto = { path = "crypto/" }
4848

4949
lakers-crypto-cc2538 = { path = "crypto/lakers-crypto-cc2538/" }

build_for_c.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ echo "Changing crate-type to: $new_value"
2424
sed -i -E "s/crate-type.*/$new_value/" lib/Cargo.toml
2525

2626
# generate the static library
27-
cargo build --target thumbv7em-none-eabihf --package edhoc-rs --package lakers-crypto --package edhoc-ead --features="$cargo_features" --release
27+
cargo build --target thumbv7em-none-eabihf --package edhoc-rs --package lakers-crypto --package lakers-ead --features="$cargo_features" --release
2828

2929
# generate the headers
3030
cbindgen --config consts/cbindgen.toml --crate lakers-shared --output ./target/include/lakers_shared.h -v

ead/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ repository.workspace = true
1010
[dependencies]
1111
lakers-shared.workspace = true
1212

13-
edhoc-ead-none = { workspace = true, optional = true }
14-
edhoc-ead-zeroconf = { workspace = true, optional = true }
13+
lakers-ead-none = { workspace = true, optional = true }
14+
lakers-ead-zeroconf = { workspace = true, optional = true }
1515

1616
[features]
1717
default = [ "ead-none" ]
18-
ead-none = [ "edhoc-ead-none" ]
19-
ead-zeroconf = [ "edhoc-ead-zeroconf" ]
18+
ead-none = [ "lakers-ead-none" ]
19+
ead-zeroconf = [ "lakers-ead-zeroconf" ]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

ead/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![no_std]
22

33
#[cfg(feature = "ead-none")]
4-
pub use edhoc_ead_none::*;
4+
pub use lakers_ead_none::*;
55

66
#[cfg(feature = "ead-zeroconf")]
7-
pub use edhoc_ead_zeroconf::*;
7+
pub use lakers_ead_zeroconf::*;

lib/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ repository.workspace = true
99

1010
[dependencies]
1111
lakers-shared.workspace = true
12-
edhoc-ead = { workspace = true, default-features = false }
12+
lakers-ead = { workspace = true, default-features = false }
1313

1414
[dev-dependencies]
1515
lakers-crypto.workspace = true
1616
hexlit = "0.5.3"
1717

1818
[features]
19-
default = [ "edhoc-ead/ead-none" ]
20-
ead-none = [ "edhoc-ead/ead-none" ]
21-
ead-zeroconf = [ "edhoc-ead/ead-zeroconf" ]
19+
default = [ "lakers-ead/ead-none" ]
20+
ead-none = [ "lakers-ead/ead-none" ]
21+
ead-zeroconf = [ "lakers-ead/ead-zeroconf" ]
2222

2323
[lib]
2424
crate-type = ["rlib"]

lib/src/edhoc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use core::marker::PhantomData;
2-
use edhoc_ead::*;
2+
use lakers_ead::*;
33
use lakers_shared::{Crypto as CryptoTrait, *};
44

55
pub fn edhoc_exporter(

lib/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub use {
55
};
66

77
#[cfg(any(feature = "ead-none", feature = "ead-zeroconf"))]
8-
pub use edhoc_ead::*;
8+
pub use lakers_ead::*;
99

1010
mod edhoc;
1111
use edhoc::*;

0 commit comments

Comments
 (0)