Skip to content

Commit 69318bd

Browse files
authored
Merge pull request #530 from kitsudaiki/feat/transform-control-plane-to-rust
related issue: #529
2 parents 00c97cc + 320a737 commit 69318bd

671 files changed

Lines changed: 14476 additions & 38106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build_test.yml

Lines changed: 250 additions & 265 deletions
Large diffs are not rendered by default.

.github/workflows/codeql.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ jobs:
9797
sudo apt-get install bison \
9898
flex \
9999
libssl-dev \
100-
libcrypto++-dev \
101-
libboost-dev \
102100
nlohmann-json3-dev \
103101
uuid-dev \
104102
libsqlite3-dev \

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ site
44
docs/drawio-exporter
55
__pycache__
66

7+
docs_env
78
hanami_env
9+
target
810

911
testing/go_cli_api/hanamictl
1012
testing/ansible_deploy/.vagrant/
@@ -18,7 +20,7 @@ src/sdk/python/hanami_sdk/hanami_messages
1820

1921
gitIdentityChange.sh
2022
proto3_pb2.py
21-
CMakeLists.txt.user
23+
CMakeLists.txt.user*
2224

2325
*.proto3.pb.go
2426
*.qmake2cmake

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "src/third-party-libs/jwt-cpp"]
2-
path = src/third-party-libs/jwt-cpp
3-
url = https://github.com/Thalhammer/jwt-cpp.git

.secrets.baseline

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@
138138
"filename": "deploy/k8s/openhanami/templates/hanami-deployment.yaml",
139139
"hashed_secret": "a8fd869cf678cfd350b2aa8fb2bc4e030c75e11d",
140140
"is_verified": false,
141-
"line_number": 84
141+
"line_number": 78
142142
},
143143
{
144144
"type": "Secret Keyword",
145145
"filename": "deploy/k8s/openhanami/templates/hanami-deployment.yaml",
146146
"hashed_secret": "a1b78300299f72872366d7a0c32a5f19512c9d32",
147147
"is_verified": false,
148-
"line_number": 92
148+
"line_number": 86
149149
}
150150
],
151151
"docs/repo/libraries/hanami_crypto.md": [
@@ -785,16 +785,7 @@
785785
"is_verified": false,
786786
"line_number": 59
787787
}
788-
],
789-
"src/libraries/hanami_crypto/tests/unit_tests/hashes_test.cpp": [
790-
{
791-
"type": "Hex High Entropy String",
792-
"filename": "src/libraries/hanami_crypto/tests/unit_tests/hashes_test.cpp",
793-
"hashed_secret": "e9e8fa9602f37a97a0e3f588c8e49e1bbb756706",
794-
"is_verified": false,
795-
"line_number": 43
796-
}
797788
]
798789
},
799-
"generated_at": "2024-10-19T15:27:22Z"
790+
"generated_at": "2025-05-05T20:31:41Z"
800791
}

.vscode/launch.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Build hanami",
6+
"type": "lldb",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/target/debug/hanami",
9+
"args": [],
10+
"cwd": "${workspaceFolder}",
11+
"stopOnEntry": false,
12+
"preLaunchTask": "cargo build",
13+
"sourceLanguages": ["rust"],
14+
"env": {
15+
// test-env-variables to initialize a basic user for testing
16+
"HANAMI_ADMIN_ID": "asdf",
17+
"HANAMI_ADMIN_NAME": "asdf",
18+
"HANAMI_ADMIN_PASSPHRASE": "asdfasdf"
19+
},
20+
},
21+
{
22+
"name": "Release Build hanami",
23+
"type": "lldb",
24+
"request": "launch",
25+
"program": "${workspaceFolder}/target/release/hanami",
26+
"args": [],
27+
"cwd": "${workspaceFolder}",
28+
"stopOnEntry": false,
29+
"preLaunchTask": "cargo build --release",
30+
"sourceLanguages": ["rust"],
31+
"env": {
32+
// test-env-variables to initialize a basic user for testing
33+
"HANAMI_ADMIN_ID": "asdf",
34+
"HANAMI_ADMIN_NAME": "asdf",
35+
"HANAMI_ADMIN_PASSPHRASE": "asdfasdf"
36+
},
37+
}
38+
]
39+
}

.vscode/tasks.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "cargo build",
6+
"type": "shell",
7+
"command": "cargo build",
8+
"group": "build",
9+
"problemMatcher": ["$rustc"]
10+
},
11+
{
12+
"label": "cargo build --release",
13+
"type": "shell",
14+
"command": "cargo build --release",
15+
"group": "build",
16+
"problemMatcher": ["$rustc"]
17+
}
18+
]
19+
}

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,38 @@
44

55
### BREAKING-CHANGES
66

7+
Translate big parts of the program from C++ into Rust:
8+
- REST-API endpoints
9+
- Database-connection
10+
- Config-file
11+
- Cluster-Template-Parser
12+
13+
#### API-Breaking
14+
15+
- IDs of API-requests of now in the query-path instead of the body
16+
- OAuth-styling of token-requests
17+
- upload files of datasets via API-endpoint instead of websocket
18+
19+
#### Template-Breaking
20+
21+
- Added `;` to the end of the files of the templates
22+
23+
#### Database-Breaking
24+
25+
- new dataset-file-header, because of the better serialization-features of rust
26+
27+
#### Database-Breaking
28+
29+
- updated database-schemas in confext of the code-translation
30+
31+
32+
33+
## v0.7.0
34+
35+
**Release-Date**: 2025-03-19
36+
37+
### BREAKING-CHANGES
38+
739
#### API-Breaking
840

941
- removed the Binary input option again

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
55

66
# INFO (kitsudaiki): This is a workaround to be able to run valgrind for memory analytics.
77
# See github-issue: https://github.com/llvm/llvm-project/issues/56550
8-
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -gdwarf-4 -fsanitize=address -fno-omit-frame-pointer")
9-
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -gdwarf-4 -fsanitize=address -fno-omit-frame-pointer")
8+
#set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -gdwarf-4 -fsanitize=address -fno-omit-frame-pointer")
9+
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -gdwarf-4 -fsanitize=address -fno-omit-frame-pointer")
10+
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -gdwarf-4")
11+
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -gdwarf-4")
1012

11-
add_subdirectory(src/libraries)
12-
add_subdirectory(src/hanami)
13+
add_subdirectory(src/libs/cpp/hanami_core)

0 commit comments

Comments
 (0)