MCPcopy Create free account

hub / github.com/Hirevo/alexandrie / functions

Functions236 in github.com/Hirevo/alexandrie

Functiondelete
Route to revoke a registry token.
crates/alexandrie/src/api/account/token/revoke.rs:29
Methodderef
(&self)
crates/alexandrie/src/utils/auth/frontend.rs:36
Methodderef
(&self)
crates/alexandrie/src/utils/auth/api.rs:34
Methodderef_mut
(&mut self)
crates/alexandrie/src/utils/auth/frontend.rs:42
Methodderef_mut
(&mut self)
crates/alexandrie/src/utils/auth/api.rs:40
Functiondeserialize_file_size
Deserializes either a number or a string representing a human-readable file size into a `u64`. The string format supported is roughly (expressed as a
crates/alexandrie/src/config/serde_utils.rs:9
Functiondeserialize_file_size_opt
Same as `deserialize_file_size`, but parses into an `Option` instead, allowing the field to be missing.
crates/alexandrie/src/config/serde_utils.rs:99
Methodenabled
return true if at least one configuration is enabled
crates/alexandrie/src/config/frontend/auth/mod.rs:33
Functionenabled_def
()
crates/alexandrie/src/config/frontend/mod.rs:13
Methodexpecting
(&self, formatter: &mut fmt::Formatter)
crates/alexandrie/src/config/serde_utils.rs:18
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/alexandrie-storage/src/s3.rs:23
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
crates/alexandrie/src/utils/sessions.rs:55
Methodfmt
(&self, f: &mut fmt::Formatter)
crates/alexandrie/src/utils/auth/api.rs:102
Methodfmt
(&self, f: &mut Formatter<'_>)
crates/alexandrie/src/fts/document.rs:20
Methodformat_name
Generate a unique filename for the given crate name and version.
crates/alexandrie-storage/src/disk.rs:29
Methodformat_readme_name
Generate a unique filename for the html-rendered readme page for the given crate name and version.
crates/alexandrie-storage/src/disk.rs:34
Methodfrom
(config: Git2IndexConfig)
crates/alexandrie-index/src/config/git2.rs:21
Methodfrom
(config: IndexConfig)
crates/alexandrie-index/src/config/mod.rs:34
Methodfrom
(config: CommandLineIndexConfig)
crates/alexandrie-index/src/config/cli.rs:21
Methodfrom
(config: DiskStorageConfig)
crates/alexandrie-storage/src/config/disk.rs:21
Methodfrom
(config: StorageConfig)
crates/alexandrie-storage/src/config/mod.rs:30
Methodfrom
(config: S3StorageConfig)
crates/alexandrie-storage/src/config/s3.rs:38
Methodfrom
(err: E)
crates/alexandrie/src/error.rs:41
Methodfrom
(value: Crate)
crates/alexandrie/src/fts/document.rs:45
Methodfrom
(category: Category)
crates/alexandrie/src/api/categories.rs:27
Methodfrom
(config: GeneralConfig)
crates/alexandrie/src/config/mod.rs:90
Methodfrom
(config: FrontendConfig)
crates/alexandrie/src/config/frontend/mod.rs:86
Methodfrom
(config: SyntectConfig)
crates/alexandrie-rendering/src/config.rs:64
Methodfrom_pool_builder
Creates a `Database<T>` with a custom connection pool builder.
crates/alexandrie/src/db/database.rs:71
Methodfrom_request_parts
( parts: &mut Parts, state: &Arc<AppState>, )
crates/alexandrie/src/utils/auth/frontend.rs:51
Methodfrom_request_parts
( parts: &mut Parts, state: &Arc<AppState>, )
crates/alexandrie/src/utils/auth/api.rs:49
Methodfrom_value
(val: &HeaderValue)
crates/alexandrie/src/utils/auth/api.rs:86
Functionget
( State(state): State<Arc<AppState>>, Query(params): Query<QueryParams>, user: Option<Auth>, )
crates/alexandrie/src/frontend/most_downloaded.rs:28
Functionget
( State(state): State<Arc<AppState>>, Path(crate_name): Path<String>, user: Option<Auth>, )
crates/alexandrie/src/frontend/krate.rs:31
Functionget
( State(state): State<Arc<AppState>>, user: Option<Auth>, )
crates/alexandrie/src/frontend/index.rs:19
Functionget
( State(state): State<Arc<AppState>>, Query(params): Query<QueryParams>, user: Option<Auth>, )
crates/alexandrie/src/frontend/last_updated.rs:28
Functionget
Route to search through crates (used by `cargo search`) using tantivy index
crates/alexandrie/src/frontend/search.rs:30
Functionget
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, )
crates/alexandrie/src/frontend/account/register.rs:46
Functionget
(session: Session)
crates/alexandrie/src/frontend/account/logout.rs:4
Functionget
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, )
crates/alexandrie/src/frontend/account/login.rs:40
Functionget
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, )
crates/alexandrie/src/frontend/account/manage/mod.rs:43
Functionget
( State(state): State<Arc<AppState>>, Path(id): Path<i64>, maybe_author: Option<Auth>, session
crates/alexandrie/src/frontend/account/manage/tokens/revoke.rs:15
Functionget
( State(state): State<Arc<AppState>>, Query(query): Query<CallbackQueryData>, maybe_author: Option
crates/alexandrie/src/frontend/account/github/callback.rs:68
Functionget
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, )
crates/alexandrie/src/frontend/account/github/mod.rs:33
Functionget
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, )
crates/alexandrie/src/frontend/account/github/attach.rs:17
Functionget
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, )
crates/alexandrie/src/frontend/account/github/detach.rs:17
Functionget
( State(state): State<Arc<AppState>>, Query(query): Query<CallbackQueryData>, maybe_author: Option
crates/alexandrie/src/frontend/account/gitlab/callback.rs:56
Functionget
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, )
crates/alexandrie/src/frontend/account/gitlab/mod.rs:33
Functionget
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, )
crates/alexandrie/src/frontend/account/gitlab/attach.rs:17
Functionget
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, )
crates/alexandrie/src/frontend/account/gitlab/detach.rs:17
Functionget
Route to list categories.
crates/alexandrie/src/api/categories.rs:42
Functionget
Route to download a crate's tarball (used by `cargo build`). The response is streamed, for performance and memory footprint reasons.
crates/alexandrie/src/api/crates/download.rs:18
Functionget
Route to get information about a crate.
crates/alexandrie/src/api/crates/info.rs:38
Functionget
( State(state): State<Arc<AppState>>, Path(name): Path<String>, )
crates/alexandrie/src/api/crates/owners.rs:40
Functionget
Route to search through crates (used by `cargo search`).
crates/alexandrie/src/api/crates/search.rs:50
Functionget
Route to search through crates (used by `cargo search`).
crates/alexandrie/src/api/crates/suggest.rs:33
Functionget
Route to get information about a registry token.
crates/alexandrie/src/api/account/token/info.rs:31
Methodget_crate
(&self, name: &str, version: Version)
crates/alexandrie-storage/src/disk.rs:40
Methodget_readme
(&self, name: &str, version: Version)
crates/alexandrie-storage/src/disk.rs:65
Functionhbs_equal
( h: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output, )
crates/alexandrie/src/frontend/helpers.rs:81
Functionhbs_humanize_date
( h: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output, )
crates/alexandrie/src/frontend/helpers.rs:26
Functionhbs_humanize_datetime
( h: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output, )
crates/alexandrie/src/frontend/helpers.rs:8
Functionhbs_humanize_number
( h: &Helper, _: &Handlebars, _: &Context, _: &mut RenderContext, out: &mut dyn Output, )
crates/alexandrie/src/frontend/helpers.rs:43
Functionhumanize_number
Humanizes a number (to something like "432'523.452").
crates/alexandrie/src/frontend/helpers.rs:76
Functioninit
(module)
assets/wasm/wasm_pbkdf2.js:87
Methodinto_inner
Unwraps the inner `Author` struct
crates/alexandrie/src/utils/auth/frontend.rs:28
Methodinto_response
(self)
crates/alexandrie/src/error.rs:26
Methodlatest_record
(&self, name: &str)
crates/alexandrie-index/src/lib.rs:94
Methodlatest_record
(&self, name: &str)
crates/alexandrie-index/src/index/git2.rs:146
Methodlatest_record
(&self, name: &str)
crates/alexandrie-index/src/index/cli.rs:50
Functionlong
Formats a more complete build information string.
crates/alexandrie/src/utils/build.rs:18
Functionmain
()
helpers/syntect-dump/src/main.rs:8
Functionmain
()
crates/alexandrie/build.rs:3
Functionmain
()
crates/alexandrie/src/main.rs:249
Methodmatch_record
(&self, name: &str, req: VersionReq)
crates/alexandrie-index/src/lib.rs:102
Methodmatch_record
(&self, name: &str, req: VersionReq)
crates/alexandrie-index/src/index/git2.rs:138
Methodmatch_record
(&self, name: &str, req: VersionReq)
crates/alexandrie-index/src/index/cli.rs:42
Methodmsg
Constructs an instance from a single message.
crates/alexandrie/src/error.rs:48
Methodnew
(path: PathBuf)
crates/alexandrie-index/src/tree.rs:18
Methodnew
Create a Git2Index instance with the given path.
crates/alexandrie-index/src/index/git2.rs:23
Methodnew
Create a CommandLineIndex instance with the given path.
crates/alexandrie-index/src/index/cli.rs:21
Methodnew
Create an DiskStorage instance with the specified path.
crates/alexandrie-storage/src/disk.rs:22
Methodnew
Instantiate a new `S3Storage` handle with the given S3 region, bucket name, and key prefix.
crates/alexandrie-storage/src/s3.rs:35
Methodnew
Create a new `SqlStore`.
crates/alexandrie/src/utils/sessions.rs:49
Methodnew
(id: i64, name: String)
crates/alexandrie/src/fts/document.rs:57
Methodnew
Constructs a `Database<T>` for the given database config (creates a connection pool).
crates/alexandrie/src/db/database.rs:31
Methodnew
Create a new [`AuthState`] from an [`AuthConfig`].
crates/alexandrie/src/config/frontend/auth/mod.rs:57
Methodnew
Create a new [`GitlabAuthState`] from a [`GitlabAuthConfig`] and the origin of the current Alexandrie instance.
crates/alexandrie/src/config/frontend/auth/gitlab.rs:46
Methodnew
Create a new [`LocalAuthState`] from a [`LocalAuthConfig`].
crates/alexandrie/src/config/frontend/auth/local.rs:28
Methodnew
Create a new [`GithubAuthState`] from a [`GithubAuthConfig`] and the origin of the current Alexandrie instance.
crates/alexandrie/src/config/frontend/auth/github.rs:52
Functionpbkdf2_encode
(password: &str, salt: &str, iteration_count: u32)
wasm-pbkdf2/src/lib.rs:8
Functionpbkdf2_encode
(password, salt, iteration_count)
assets/wasm/wasm_pbkdf2.js:78
Functionpost
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, Form(form)
crates/alexandrie/src/frontend/account/register.rs:81
Functionpost
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, Form(form)
crates/alexandrie/src/frontend/account/login.rs:77
Functionpost
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, Form(form)
crates/alexandrie/src/frontend/account/manage/passwd.rs:28
Functionpost
( State(state): State<Arc<AppState>>, maybe_author: Option<Auth>, session: Session, Form(form)
crates/alexandrie/src/frontend/account/manage/tokens/mod.rs:28
Functionpost
Route to register a new account.
crates/alexandrie/src/api/account/register.rs:38
Functionpost
Route to get information about a registry token.
crates/alexandrie/src/api/account/token/info.rs:61
Functionput
Route to publish a new crate (used by `cargo publish`).
crates/alexandrie/src/api/crates/publish.rs:195
Functionput
( State(state): State<Arc<AppState>>, Auth(author): Auth, Path(name): Path<String>, Json(body)
crates/alexandrie/src/api/crates/owners.rs:83
← previousnext →101–200 of 236, ranked by callers