Skip to content

Commit

Permalink
Merge pull request #19 from 0xBLCKLPTN/bazel-connect
Browse files Browse the repository at this point in the history
Bazel connect
  • Loading branch information
0xBLCKLPTN authored Sep 28, 2024
2 parents ab962ab + eb0590e commit 2860db4
Show file tree
Hide file tree
Showing 889 changed files with 23,670 additions and 56,758 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ Cargo.lock

/target
/Cargo.lock

bazel-bin
bazel-Kingdom-System
bazel-out
bazel-testlogs

LOGDATABASE
DATABASE
*.adb
8 changes: 8 additions & 0 deletions Libraries/Cryptograf/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

cc_binary(
name = "cryptograf",
srcs = ["src/cryptograf.c"],
hdrs = ["includes/cryptograf.h"],
visibility = ["//visibility:public"]
#deps = ["//square:square"]
)
11 changes: 11 additions & 0 deletions Libraries/Cryptograf/includes/cryptograf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#define CRYPTOGRAF_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void init_sodium();
void poly1305_hash();
void blake2_hash();
void chacha20_encode();
void chacha20_decode();
10 changes: 10 additions & 0 deletions Libraries/Cryptograf/src/cryptograf.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "./includes/cryptograf.h"
void init_sodium();
void poly1305_hash();
void blake2_hash();
void chacha20_encode();
void chacha20_decode();

int main() {
printf("Hello World!\n");
}
File renamed without changes.
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bazel_dep(name = "rules_rust", version = "0.48.0")
14,214 changes: 14,214 additions & 0 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# build authorization plugin
bap:
mkdir build && bazel build //plugins/Authorization:authorization

# bazel clean
bc:
bazel clean

# bazel clean async
bca:
bazel clean --async

# bazel test alicedb
bta:
bazel test //Plugins/AliceDatabase:rs_test

# bazel build alicedb
bba:
CARGO_BAZEL_REPIN=true bazel build //Plugins/AliceDatabase:rs_bazel

# enter to nix
etn:
nix-shell shell.nix
3 changes: 0 additions & 3 deletions PluginManager/src/kittens.txt

This file was deleted.

Binary file removed PluginManager/src/ks_manager
Binary file not shown.
1 change: 0 additions & 1 deletion PluginManager/src/ks_manager.nim

This file was deleted.

35 changes: 35 additions & 0 deletions Plugins/AliceDatabase/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
visibility = ["//visibility:public"]

load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test")
load("@crate_index//:defs.bzl", "aliases", "all_crate_deps")

rust_binary(
name = "rs_bazel",

# Specifies the source file for the binary.
srcs = glob([
"src/*.rs",
"src/**/*.rs"
]),
aliases = aliases(),
#proc_macro_deps = all_crate_deps(),
deps = all_crate_deps(normal = True),
# Specifies the Rust edition to use for this binary.
edition = "2021"
)

rust_test(
name = "rs_test",

# Specifies the source file for the binary.
srcs = glob([
"src/*.rs",
"src/log_db/**/*.rs",
"src/remore_db/**/*.rs",
]),
aliases = aliases(),
#proc_macro_deps = all_crate_deps(),
deps = all_crate_deps(normal = True),
# Specifies the Rust edition to use for this binary.
edition = "2021"
)
Loading

0 comments on commit 2860db4

Please sign in to comment.