Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ jobs:
- if: matrix.rust_release == 'latest-stable' && matrix.os == 'ubuntu-latest'
uses: ./.github/actions/use-sccache

- name: Install libcurl dev (needed by rdkafka-sys)
if: runner.os == 'Linux'
run: sudo apt-get update -qq && sudo apt-get install -y -qq libcurl4-openssl-dev > /dev/null

- run: cargo clippy --all-targets -- -D warnings
- run: cargo clippy --all-targets --no-default-features -- -D warnings
- run: cargo clippy --all-targets --all-features -- -D warnings
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- name: Install nightly Rust channel
run: rustup toolchain add nightly

- name: Install libcurl dev (needed by rdkafka-sys)
run: sudo apt-get update -qq && sudo apt-get install -y -qq libcurl4-openssl-dev > /dev/null

- env:
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
run: cargo +nightly doc --no-deps --all-features
Expand Down
102 changes: 102 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions build_docs.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
set -e

sudo apt-get update -qq && sudo apt-get install -y -qq libcurl4-openssl-dev > /dev/null

echo "========================================="
echo "Step 1/7: Downloading LLVM..."
echo "========================================="
Expand Down
14 changes: 14 additions & 0 deletions hydro_deploy/core/src/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ pub struct NetworkResources {
security_group: String,
}

impl NetworkResources {
pub fn new(vpc: String, subnet: String, security_group: String) -> Self {
Self {
vpc,
subnet,
security_group,
}
}
}

#[derive(Debug)]
pub struct AwsNetwork {
pub region: String,
Expand Down Expand Up @@ -910,6 +920,10 @@ echo -e "{cwa_config_esc}" > /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwa
"associate_public_ip_address": true,
"iam_instance_profile": iam_instance_profile_ref, // May be `None`.
"user_data": user_data_script, // May be `None`.
"metadata_options": {
"http_tokens": "required",
"http_endpoint": "enabled"
},
"tags": {
"Name": instance_name
}
Expand Down
2 changes: 1 addition & 1 deletion hydro_deploy/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub mod azure;
pub use azure::AzureHost;

pub mod aws;
pub use aws::{AwsEc2Host, AwsNetwork};
pub use aws::{AwsEc2Host, AwsNetwork, NetworkResources};

pub mod rust_crate;
pub use rust_crate::RustCrate;
Expand Down
7 changes: 7 additions & 0 deletions hydro_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ docker = ["hydro_lang/docker_deploy"]
ecs = ["hydro_lang/ecs_deploy"]
maelstrom = ["hydro_lang/maelstrom"]
stageleft_macro_entrypoint = ["hydro_lang/stageleft_macro_entrypoint"]
kafka = ["dep:rdkafka", "dep:futures-util"]

[[example]]
name = "kafka"
required-features = ["kafka"]

[dependencies]
hydro_lang = { path = "../hydro_lang", version = "^0.16.0" }
Expand All @@ -33,6 +38,8 @@ bytes = "1.1.0"
# https://github.com/GitoxideLabs/cargo-smart-release/issues/36
example_test = { path = "../example_test", version = "^0.0.1", optional = true }
hydro_build_utils = { path = "../hydro_build_utils", version = "^0.1.0", optional = true }
rdkafka = { version = "0.39.0", optional = true, features = ["cmake-build", "ssl-vendored"] }
futures-util = { version = "0.3.0", default-features = false, features = ["alloc"], optional = true }

[build-dependencies]
stageleft_tool.workspace = true
Expand Down
Loading
Loading