pub enum Source {
Tarball {
url: String,
checksum: String,
},
Npm {
package: String,
version: Option<String>,
},
PyPi {
package: String,
version: Option<String>,
},
Binary {
platforms: HashMap<String, String>,
},
Ollama {
model: String,
},
HuggingFace {
repo: String,
quantization: Option<String>,
},
}Expand description
Source of a package - where to fetch the actual content.
The registry contains metadata; sources define where to get the content.
Variants§
Tarball
Tarball from our CDN or GitHub releases
Npm
NPM package (for MCP servers)
Fields
PyPi
PyPI package (for Python MCP servers)
Binary
Pre-built binary (platform-specific)
Fields
Ollama
Ollama model
HuggingFace
HuggingFace model
Trait Implementations§
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more