// In your build script add a proc macro attribute to the server mod.
// This will generate the default Mock server for you
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(true)
.build_client(true)
.server_mod_attribute(tonic_mock::Mock)
.compile(&["tests/protos/route_guide.proto"], &["tests/protos"])?;
Ok(())
}
x
tonic-mock
public
0 stars
0 forks
0 issues
Commits
List of commits on branch main.Unverified
c5484a470e5efb2595f1717f34134b965cbd8c1bFix url add logging
xxd009642 committed a year ago
Unverified
6d60228a39da85f22a3c8cef15e09b73b443f7aaProgress on first realisation of the test setup
xxd009642 committed a year ago
Unverified
266c0555b127deda4e39139c95af833b82f2aa3aWork on building up test example
xxd009642 committed a year ago
Unverified
aced8cedbfd4baa54fb2dc04577e99f788d4e66cWork on verifying requests and checking things
xxd009642 committed a year ago
Unverified
42a995898298861a296b9ea948e9f0d9b596cb01Start working on API a bit
xxd009642 committed a year ago
Unverified
7e7b9d4eb7166cd7922bb5e47bf9727b451206baStart working on responders
xxd009642 committed a year ago