diff --git a/recipes/wip/net/http/simple-http-server/recipe.toml b/recipes/net/http/simple-http-server/recipe.toml similarity index 58% rename from recipes/wip/net/http/simple-http-server/recipe.toml rename to recipes/net/http/simple-http-server/recipe.toml index a71ff2144..86c96318a 100644 --- a/recipes/wip/net/http/simple-http-server/recipe.toml +++ b/recipes/net/http/simple-http-server/recipe.toml @@ -1,8 +1,11 @@ -#TODO promote -[source] -git = "https://github.com/TheWaWaR/simple-http-server" -[build] -template = "cargo" -dependencies = [ - "openssl1", -] +[source] +git = "https://github.com/TheWaWaR/simple-http-server" +[build] +template = "custom" +dependencies = [ + "openssl1", +] +script = """ +DYNAMIC_INIT +cookbook_cargo +""" diff --git a/recipes/wip/net/http/http-server-rs/recipe.toml b/recipes/wip/net/http/http-server-rs/recipe.toml index 06780d78e..c537e0c56 100644 --- a/recipes/wip/net/http/http-server-rs/recipe.toml +++ b/recipes/wip/net/http/http-server-rs/recipe.toml @@ -1,5 +1,25 @@ -#TODO not compiled or tested +#TODO camino crate error [source] git = "https://github.com/http-server-rs/http-server" +# Broken since https://github.com/http-server-rs/http-server/pull/461 +# because it needs https://trunkrs.dev to work +rev = "9ffa604de326e013330bced8e36dd7a6945ecb9f" +shallow_clone = true + [build] -template = "cargo" +template = "custom" +dependencies = [ + "openssl1", +] +script = """ +DYNAMIC_INIT +export OPENSSL_DIR="${COOKBOOK_SYSROOT}" +export OPENSSL_STATIC="true" +"${COOKBOOK_CARGO}" build \ + --manifest-path "${COOKBOOK_SOURCE}/crates/file-explorer-plugin/Cargo.toml" \ + --locked ${build_flags} --lib +cp -v \ + "target/${TARGET}/${build_type}/libfile_explorer_plugin.dylib" \ + "${COOKBOOK_SOURCE}"/lib/http-server/inline/file_explorer.plugin.httprs +PACKAGE_PATH=crates/http-server cookbook_cargo --bin http-server +"""