-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathjustfile
51 lines (37 loc) · 1.96 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
proto_dir := "./crates/zitadel-gen/src/api/"
gen_dir := "./crates/zitadel-gen"
zitadel_proto_version := "v2.69.1"
default: clean generate-grpc
clean:
@rm -rf {{proto_dir}}
generate-grpc:
buf generate https://github.com/zitadel/zitadel.git#tag={{zitadel_proto_version}} --path ./proto/zitadel
build_zitadel-grpc:
cargo set-version --package zitadel-gen `echo {{zitadel_proto_version}} | sed 's/^v//'`
cargo build --package zitadel-gen --release
install-tools:
cargo install protoc-gen-prost protoc-gen-tonic protoc-gen-prost-crate protoc-gen-prost-serde cargo-edit
all_examples:
# fetch_profile_with_pat
cargo run -p zitadel-examples --example fetch_profile_with_pat \
--features "zitadel/api zitadel/interceptors tokio" --release
# fetch_profile_with_service_account
cargo run -p zitadel-examples --example fetch_profile_with_service_account \
--features "zitadel/api zitadel/interceptors tokio" --release
# actix_webapi_oauth_interception_basic
cargo run -p zitadel-examples --example actix_webapi_oauth_interception_basic \
--features "actix" --release
# axum_webapi_oauth_interception_basic
cargo run -p zitadel-examples --example axum_webapi_oauth_interception_basic \
--features "axum" --release
# rocket_webapi_oauth_interception_basic
cargo run -p zitadel-examples --example rocket_webapi_oauth_interception_basic \
--features "rocket" --release
# rocket_webapi_oauth_interception_jwtprofile_cached
cargo run -p zitadel-examples --example rocket_webapi_oauth_interception_jwtprofile_cached \
--features "rocket zitadel/introspection_cache" --release
# rocket_webapi_oauth_interception_jwtprofile
cargo run -p zitadel-examples --example rocket_webapi_oauth_interception_jwtprofile \
--features "rocket" --release
# service_account_authentication
cargo run -p zitadel-examples --example service_account_authentication --features "zitadel/credentials tokio" --release