From d737b2656af75378f89c1acd5db788bac198724d Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Fri, 13 Dec 2024 12:16:49 +0300 Subject: [PATCH] refactor(rusile): Contain all sources in module dir so `cargo publish` works again --- build-aux/que_rust_module.am | 2 +- rusile/Cargo.toml | 2 +- build-aux/module.rs => rusile/build.rs | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename build-aux/module.rs => rusile/build.rs (100%) diff --git a/build-aux/que_rust_module.am b/build-aux/que_rust_module.am index 708b6a12b..5054e5242 100644 --- a/build-aux/que_rust_module.am +++ b/build-aux/que_rust_module.am @@ -1,5 +1,5 @@ pkglib_LIBRARIES = @MODULE@.@SHARED_LIB_EXT@ -@MODULE@_@SHARED_LIB_EXT@_SOURCES = @MODULE@/Cargo.toml @MODULE@/src/lib.rs build-aux/module.rs +@MODULE@_@SHARED_LIB_EXT@_SOURCES = @MODULE@/Cargo.toml @MODULE@/src/lib.rs @MODULE@/build.rs @builddir@/target/@RUST_TARGET_SUBDIR@/lib@MODULE@.@SHARED_LIB_EXT@: $(@MODULE@_@SHARED_LIB_EXT@_SOURCES) $(CARGO_ENV) $(CARGO) build $(CARGO_VERBOSE) --target $(CARGO_TARGET_TRIPLE) $(@MODULE@_FEATURE_ARGS) $(CARGO_RELEASE_ARGS) -p @MODULE@ diff --git a/rusile/Cargo.toml b/rusile/Cargo.toml index 3f108ec59..6cde89f84 100644 --- a/rusile/Cargo.toml +++ b/rusile/Cargo.toml @@ -9,7 +9,7 @@ authors.workspace = true homepage.workspace = true repository.workspace = true license.workspace = true -build = "../build-aux/module.rs" +build = "build.rs" [lib] crate-type = ["rlib", "cdylib", "staticlib"] diff --git a/build-aux/module.rs b/rusile/build.rs similarity index 100% rename from build-aux/module.rs rename to rusile/build.rs