From 492f2a7ea361b1161cb8392f82b75797eb87dde1 Mon Sep 17 00:00:00 2001
From: Russel Arbore <rarbore2@illinois.edu>
Date: Tue, 14 Jan 2025 16:57:14 -0600
Subject: [PATCH] propagate cuda feature in cargo.tomls

---
 hercules_opt/Cargo.toml         | 3 +++
 hercules_samples/fac/Cargo.toml | 3 +++
 juno_build/Cargo.toml           | 3 +++
 juno_frontend/Cargo.toml        | 3 +++
 4 files changed, 12 insertions(+)

diff --git a/hercules_opt/Cargo.toml b/hercules_opt/Cargo.toml
index 84f6aca8..c8f7780f 100644
--- a/hercules_opt/Cargo.toml
+++ b/hercules_opt/Cargo.toml
@@ -4,6 +4,9 @@ version = "0.1.0"
 authors = ["Russel Arbore <rarbore2@illinois.edu>, Aaron Councilman <aaronjc4@illinois.edu>"]
 edition = "2021"
 
+[features]
+cuda = ["hercules_cg/cuda"]
+
 [dependencies]
 ordered-float = "*"
 bitvec = "*"
diff --git a/hercules_samples/fac/Cargo.toml b/hercules_samples/fac/Cargo.toml
index d4b9c5fe..350e3658 100644
--- a/hercules_samples/fac/Cargo.toml
+++ b/hercules_samples/fac/Cargo.toml
@@ -4,6 +4,9 @@ version = "0.1.0"
 authors = ["Russel Arbore <rarbore2@illinois.edu>"]
 edition = "2021"
 
+[features]
+cuda = ["juno_build/cuda"]
+
 [build-dependencies]
 juno_build = { path = "../../juno_build" }
 
diff --git a/juno_build/Cargo.toml b/juno_build/Cargo.toml
index 72faf4bd..13889171 100644
--- a/juno_build/Cargo.toml
+++ b/juno_build/Cargo.toml
@@ -4,6 +4,9 @@ version = "0.1.0"
 authors = ["Aaron Councilman <aaronjc4@illinois.edu>"]
 edition = "2021"
 
+[features]
+cuda = ["juno_frontend/cuda"]
+
 [dependencies]
 juno_frontend = { path = "../juno_frontend" }
 hercules_ir = { path = "../hercules_ir" }
diff --git a/juno_frontend/Cargo.toml b/juno_frontend/Cargo.toml
index 39e18baa..3c3d557f 100644
--- a/juno_frontend/Cargo.toml
+++ b/juno_frontend/Cargo.toml
@@ -4,6 +4,9 @@ version = "0.1.0"
 authors = ["Aaron Councilman <aaronjc4@illinois.edu>"]
 edition = "2021"
 
+[features]
+cuda = ["hercules_opt/cuda"]
+
 [[bin]]
 name = "juno"
 path = "src/main.rs"
-- 
GitLab