Skip to content

Commit

Permalink
Restructure repo (#3)
Browse files Browse the repository at this point in the history
* Restructure repo

* Update gitignore

* Update tests

* Update more tests

* bump gitignore

* Updates

* Update README.md
  • Loading branch information
tommymalmqvist authored Apr 6, 2022
1 parent 7543985 commit 5053234
Show file tree
Hide file tree
Showing 523 changed files with 1,909 additions and 51 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/target
ocpp/target
target
**/target
Cargo.lock
.DS_Store
.vscode
**/.idea
37 changes: 5 additions & 32 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,6 @@
[package]
name = "rust-ocpp"
description = "ocpp 1.6 and 2.0.1 libraries"
readme = "README.md"
license = "MIT OR Apache-2.0"
version = "0.1.25"
authors = ["Tommy Malmqvist <[email protected]"]
homepage = "https://codelabs.se/"
repository = "https://github.com/codelabsab/rust-ocpp"
edition = "2021"
keywords = ["ocpp", "ev", "csms"]
categories = ["accessibility", "data-structures", "embedded", "encoding", "web-programming::websocket"]
exclude = ["/docs"]
publish = true
[workspace]

[badges]
maintenance = { status = "experimental" }

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
chrono = { version = "0.4.19", features = ["serde"] }
rand = "0.8"
uuid = { version = "0.8", features = ["v4"] }
pretty_env_logger = "0.4.0"
log = "0.4"
validator = { version = "0.14", features = ["derive"] }
regex = "1"

[dev-dependencies]
mockall = "0.10.2"
members = [
"ocpp",
"ws",
]
22 changes: 4 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
# OCPP Library
# rust-ocpp

Libraries implemeting OCPP 1.6 and 2.0.1.
this repo contains implementations of `ocpp`

Specification and schemas are stored under `docs/`
`ocpp/` : contains library implementations of 1.6 and 2.0.1

# crate

https://crates.io/crates/rust-ocpp

# docs

https://docs.rs/rust-ocpp/latest/rust_ocpp/

# Todo

Validate implementation against schemas

# Links

[Open Charge Alliance](https://www.openchargealliance.org/)
`ws/` : contains demo websockets server
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions ocpp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[package]
name = "rust-ocpp"
description = "ocpp 1.6 and 2.0.1 libraries"
readme = "README.md"
license = "MIT OR Apache-2.0"
version = "0.1.25"
authors = ["Tommy Malmqvist <[email protected]"]
homepage = "https://codelabs.se/"
repository = "https://github.com/codelabsab/rust-ocpp"
edition = "2021"
keywords = ["ocpp", "ev", "csms"]
categories = ["accessibility", "data-structures", "embedded", "encoding", "web-programming::websocket"]
publish = true

[badges]
maintenance = { status = "experimental" }

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
chrono = { version = "0.4.19", features = ["serde"] }
rand = "0.8"
uuid = { version = "0.8", features = ["v4"] }
pretty_env_logger = "0.4.0"
log = "0.4"
validator = { version = "0.14", features = ["derive"] }
regex = "1"

[dev-dependencies]
mockall = "0.11.0"
21 changes: 21 additions & 0 deletions ocpp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# OCPP Library

Libraries implemeting OCPP 1.6 and 2.0.1.

Specification and schemas are stored under `docs/`

# crate

https://crates.io/crates/rust-ocpp

# docs

https://docs.rs/rust-ocpp/latest/rust_ocpp/

# Todo

Validate implementation against schemas

# Links

[Open Charge Alliance](https://www.openchargealliance.org/)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 5053234

Please sign in to comment.