Skip to content

Commit

Permalink
ARROW-7794: [Rust] Support releasing arrow-flight
Browse files Browse the repository at this point in the history
I tested this by running `cargo publish --dry-run --allow-dirty` from the arrow-flight directory as well as running `cargo test` from this directory and from the root of the rust workspace.

Closes apache#6858 from andygrove/ARROW-7794

Authored-by: Andy Grove <andygrove73@gmail.com>
Signed-off-by: Andy Grove <andygrove73@gmail.com>
  • Loading branch information
andygrove committed Apr 7, 2020
1 parent cda6a4b commit 528d71e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rust/arrow-flight/build.rs
Expand Up @@ -15,7 +15,17 @@
// specific language governing permissions and limitations
// under the License.

use std::env;

fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::compile_protos("../../format/Flight.proto")?;
// The current working directory can vary depending on how the project is being
// built or released so we build an absolute path to the proto file
let mut path = env::current_dir()?;
while !path.ends_with("arrow") {
path.pop();
}
path.push("format");
path.push("Flight.proto");
tonic_build::compile_protos(path)?;
Ok(())
}

0 comments on commit 528d71e

Please sign in to comment.