onelson / estuary

33 stars 8 forks source link

Add search endpoint. #25

Closed onelson closed 3 years ago

onelson commented 3 years ago

This implements the GET /api/v1/crates which allows cargo search to work.

This search implementation is very naive, and will be improved once we have a database in place as our primary source for package info. In the future the file system and git log will no longer be needed to respond to requests like this, but for now these are the primary sources.

Fixes #23.

codecov[bot] commented 3 years ago

Codecov Report

Merging #25 (8c8df81) into main (f6e97f0) will decrease coverage by 3.39%. The diff coverage is 3.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
- Coverage   95.46%   92.06%   -3.40%     
==========================================
  Files           8        8              
  Lines         838      870      +32     
==========================================
+ Hits          800      801       +1     
- Misses         38       69      +31     
Impacted Files Coverage Δ
src/handlers.rs 100.00% <ø> (ø)
src/handlers/registry.rs 78.76% <3.12%> (-21.24%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f6e97f0...8c8df81. Read the comment docs.