File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
crates/crates_io_team_repo Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ unicode-xid = "=0.2.6"
124124bytes = " =1.8.0"
125125crates_io_index = { path = " crates/crates_io_index" , features = [" testing" ] }
126126crates_io_tarball = { path = " crates/crates_io_tarball" , features = [" builder" ] }
127+ crates_io_team_repo = { path = " crates/crates_io_team_repo" , features = [" mock" ] }
127128crates_io_test_db = { path = " crates/crates_io_test_db" }
128129claims = " =0.7.1"
129130diesel = { version = " =2.2.4" , features = [" r2d2" ] }
Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ edition = "2021"
77[lints ]
88workspace = true
99
10+ [features ]
11+ mock = [" mockall" ]
12+
1013[dependencies ]
1114anyhow = " =1.0.93"
1215async-trait = " =0.1.83"
13- mockall = " =0.13.0"
16+ mockall = { version = " =0.13.0" , optional = true }
1417reqwest = { version = " =0.12.9" , features = [" gzip" , " json" ] }
1518serde = { version = " =1.0.214" , features = [" derive" ] }
1619
Original file line number Diff line number Diff line change 66//! the trait.
77
88use async_trait:: async_trait;
9- use mockall:: automock;
109use reqwest:: { Certificate , Client } ;
1110use serde:: Deserialize ;
1211
1312mod certs;
1413
15- #[ automock]
14+ #[ cfg_attr ( feature = "mock" , mockall :: automock) ]
1615#[ async_trait]
1716pub trait TeamRepo {
1817 async fn get_permission ( & self , name : & str ) -> anyhow:: Result < Permission > ;
You can’t perform that action at this time.
0 commit comments