MCPcopy Index your code
hub / github.com/beltram/stubr

github.com/beltram/stubr @0.6.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.6.2 ↗ · + Follow
3,028 symbols 8,527 edges 344 files 120 documented · 4% updated 19mo ago0.6.2 · 2023-06-29★ 717 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

stubr

Wiremock rewritten in Rust

Crates.io version

rust: 1.56.1+

Download

docs.rs docs

Apache 2

ci

coverage

Adaptation of wiremock-rs supporting existing Wiremock json stubs as input.
Aims at reaching feature parity with Wiremock and be a drop-in replacement of the latter.

Read the full documentation here.

Extension points exported contracts — how you extend this code

MockRegistrable (Interface)
Normalizes appending a struct into a Mock [8 implementers]
lib/src/model/request/mod.rs
UriAndQuery (Interface)
(no doc) [1 implementers]
lib/tests/utils.rs
Match (Interface)
Anything that implements `Match` can be used to constrain when a [`Mock`] is activated. `Match` can be used to extend t [39 …
lib/src/wiremock/mock.rs
GrpcConnect (Interface)
(no doc) [1 implementers]
lib/tests/grpc/mod.rs
AnyTemplate (Interface)
(no doc) [17 implementers]
lib/src/model/response/template/helpers/any/mod.rs
Verifier (Interface)
(no doc) [9 implementers]
lib/src/verify/mapping/resp/mod.rs
JsonGeneratorIterator (Interface)
(no doc) [7 implementers]
lib/src/verify/mapping/jsonpath/mod.rs

Core symbols most depended-on inside this repo

uri
called by 505
lib/src/server/mod.rs
call
called by 211
lib/src/verify/mod.rs
body
called by 205
lib/src/model/response/template/req_ext.rs
insert
called by 110
actix-producer/src/repository/pet.rs
path
called by 99
lib/src/server/mod.rs
status
called by 75
lib/src/model/response/mod.rs
exec
called by 50
cli/src/cli/commands.rs
and
called by 41
lib/src/wiremock/mock.rs

Shape

Function 2,072
Method 718
Class 202
Interface 22
Enum 14

Languages

Rust64%
TypeScript36%

Modules by API surface

book/mermaid.min.js1,099 symbols
lib/src/verify/mapping/resp/body/json_templating/mod.rs73 symbols
lib/src/record/record_client/actix.rs43 symbols
lib/src/record/standalone/warp_exchange.rs41 symbols
lib/src/server/mod.rs39 symbols
lib/src/record/record_client/reqwest.rs36 symbols
lib/tests/req/body/eq.rs28 symbols
lib/src/verify/mapping/resp/body/text_templating.rs28 symbols
lib/tests/resp/template/any.rs26 symbols
lib/src/verify/mapping/req/body.rs26 symbols
lib/src/model/response/template/data.rs25 symbols
attributes/src/mock.rs23 symbols

For agents

$ claude mcp add stubr \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page