Skip to content

Commit

Permalink
Move wellknown test into tests dir
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioFranco committed Oct 23, 2019
1 parent 8900521 commit 6ebe6f6
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ members = [
"tonic-build",
"tonic-examples",
"tonic-interop",

"tests/same_name",
"tests/wellknown",
]
16 changes: 16 additions & 0 deletions tests/wellknown/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "wellknown"
version = "0.1.0"
authors = ["Lucio Franco <[email protected]>"]
edition = "2018"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tonic = { path = "../../tonic" }
bytes = "0.4"
prost = "0.5"

[build-dependencies]
tonic-build = { path = "../../tonic-build" }
3 changes: 3 additions & 0 deletions tests/wellknown/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
tonic_build::compile_protos("proto/wellknown.proto").unwrap();
}
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/wellknown/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub mod pb {
tonic::include_proto!("wellknown");
}
12 changes: 0 additions & 12 deletions tonic-build/tests/wellknown.rs

This file was deleted.

0 comments on commit 6ebe6f6

Please sign in to comment.