-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from 0xBLCKLPTN/bazel-connect
Bazel connect
- Loading branch information
Showing
889 changed files
with
23,670 additions
and
56,758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bazel_dep(name = "rules_rust", version = "0.48.0") |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
) |
Oops, something went wrong.