MCPcopy Create free account

hub / github.com/Wulf/create-rust-app / functions

Functions384 in github.com/Wulf/create-rust-app

↓ 181 callersMethodto_string
(&self)
crates/qsync/src/hook.rs:259
↓ 59 callersMethodeq
(&self, other: &Self)
crates/create-rust-app/src/auth/permissions/mod.rs:134
↓ 48 callersFunctionreplace
(file_path: &str, from: &str, to: &str)
crates/create-rust-app_cli/src/utils/fs.rs:141
↓ 44 callersFunctionmessage
(msg: &str)
crates/create-rust-app_cli/src/utils/logger.rs:4
↓ 43 callersMethodsend
send an email with the specifified content and subject to the specified user will only send an email if the `SEND_MAIL` environment variable was set
crates/create-rust-app/src/mailer.rs:181
↓ 24 callersFunctionadd_dependency
( project_dir: &std::path::PathBuf, log_name: &str, dependency_entry: &str, )
crates/create-rust-app_cli/src/content/cargo_toml.rs:3
↓ 21 callersFunctioncreate
(resource_name: &str)
crates/create-rust-app_cli/src/content/model.rs:19
↓ 21 callersMethodjson
(self)
crates/create-rust-app/src/dev/mod.rs:121
↓ 20 callersFunctionerror
(msg: &str)
crates/create-rust-app_cli/src/utils/logger.rs:43
↓ 16 callersFunctioncommand_msg
(command: &str)
crates/create-rust-app_cli/src/utils/logger.rs:8
↓ 16 callersMethodget_connection
get a [`Connection`] to a database # Errors if the pool is unable to get a connection
crates/create-rust-app/src/database/mod.rs:48
↓ 11 callersFunctionerror_response
(status_code: u16, message: &'static str)
crates/create-rust-app/src/auth/endpoints/service_poem.rs:19
↓ 11 callersMethoderror_string
( &self, message: &'static str, key: impl std::fmt::Display, error: impl std::
crates/create-rust-app/src/storage/mod.rs:252
↓ 10 callersFunctionadd_file_msg
(file: &str)
crates/create-rust-app_cli/src/utils/logger.rs:12
↓ 10 callersMethoddefault
()
crates/create-rust-app/src/mailer.rs:63
↓ 9 callersFunctionread
(file_path: &str)
crates/create-rust-app_cli/src/utils/fs.rs:91
↓ 9 callersFunctionregister_service_msg
(service_name: &str)
crates/create-rust-app_cli/src/utils/logger.rs:16
↓ 9 callersFunctionuseAuth
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:81
↓ 8 callersFunctioninstall
we allow pass_by_value because most of these are zero-sized types, and therefore smaller than references
crates/create-rust-app_cli/src/plugins/mod.rs:126
↓ 6 callersMethodclient_or_error
(&self)
crates/create-rust-app/src/storage/mod.rs:262
↓ 6 callersFunctionsend
(mailer: &Mailer, to_email: &str, link: &str)
crates/create-rust-app/src/auth/mail/auth_register.rs:4
↓ 5 callersFunctionappend
(file_path: &str, content: &str)
crates/create-rust-app_cli/src/utils/fs.rs:126
↓ 5 callersFunctionregister_actix
use `fs::replace` instead and also `fs::append` for the services/mod.rs entry #[deprecated]
crates/create-rust-app_cli/src/content/service.rs:349
↓ 4 callersFunctioncheck_config
(project_dir: &PathBuf, config_item: &str)
crates/create-rust-app_cli/src/utils/git.rs:4
↓ 4 callersFunctionensure_file
(file: &PathBuf, contents: Option<&str>)
crates/create-rust-app_cli/src/utils/fs.rs:29
↓ 4 callersFunctiongenerate_salt
()
crates/create-rust-app/src/auth/controller.rs:824
↓ 4 callersFunctionload_env_vars
()
crates/create-rust-app/src/lib.rs:93
↓ 4 callersMethodname
(&self)
crates/create-rust-app_cli/src/plugins/dev.rs:18
↓ 4 callersFunctionremove_file_msg
(file: &str)
crates/create-rust-app_cli/src/utils/logger.rs:27
↓ 4 callersFunctionrename_file_msg
(src: &str, dest: &str)
crates/create-rust-app_cli/src/utils/logger.rs:31
↓ 3 callersFunctioncargo_locate_project
`OnceLock` wrapper around output of `cargo locate-project --message-format=plain` if the command fails (e.g. if we're in a container or otherwise don
crates/create-rust-app/src/util/workspace_utils.rs:32
↓ 3 callersFunctioncargo_locate_project_workspace
`OnceLock` wrapper around output of `cargo locate-project --workspace --message-format=plain` if the command fails (e.g. if we're in a container or o
crates/create-rust-app/src/util/workspace_utils.rs:7
↓ 3 callersFunctioncheck_exit
(state: &DevState)
crates/create-rust-app/src/dev/mod.rs:310
↓ 3 callersFunctionensure_directory
(directory: &PathBuf, prompt_before_create: bool)
crates/create-rust-app_cli/src/utils/fs.rs:44
↓ 3 callersFunctionexit_error
(msg: &str, err: &std::io::Error)
crates/create-rust-app_cli/src/utils/logger.rs:52
↓ 3 callersFunctionfallback
isolate logic for determining fallback values for the public functions below we isolate the logic to here so we can ensure consistency and test it #
crates/create-rust-app/src/util/workspace_utils.rs:61
↓ 3 callersFunctionfetchSessions
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/AccountPage.tsx:61
↓ 3 callersFunctionfile_response
(path: &String)
crates/create-rust-app/src/util/poem_utils.rs:174
↓ 3 callersFunctionget_ipts
(page)
crates/create-rust-app_cli/template-plugin-auth/frontend/tests/authentication.spec.ts:8
↓ 3 callersFunctionmodify_file_msg
(file: &str)
crates/create-rust-app_cli/src/utils/logger.rs:23
↓ 3 callersFunctionprepend
(file_path: &str, content: &str)
crates/create-rust-app_cli/src/utils/fs.rs:98
↓ 3 callersFunctionregister_poem
use `fs::replace` instead and also `fs::append` for the services/mod.rs entry #[deprecated]
crates/create-rust-app_cli/src/content/service.rs:325
↓ 3 callersFunctionstart
( project_dir: &'static str, dev_port: u16, dev_server_events_r: Receiver<DevServerEvent>, dev
crates/create-rust-app/src/dev/dev_server.rs:42
↓ 3 callersFunctionuseQueryParam
(key: string)
crates/create-rust-app_cli/template/frontend/src/hooks/useQueryParam.ts:4
↓ 2 callersFunctionadd_rust_file
(file_directory: &str, file_name: &str, file_contents: &str)
crates/create-rust-app_cli/src/utils/fs.rs:152
↓ 2 callersFunctionconfig
(service_name: &str)
crates/create-rust-app_cli/src/content/service.rs:53
↓ 2 callersFunctionconfigure_project
( query_sync: bool, qsync_input_files: Option<Vec<PathBuf>>, qsync_output_file: Option<PathBuf>,
crates/create-rust-app_cli/src/main.rs:496
↓ 2 callersMethodcreate
Create an entry in [`db`](`Connection`)'s `users` table using the data in [`item`](`UserChangeset`) # Errors [`diesel::result::Error`](`diesel::resul
crates/create-rust-app/src/auth/user.rs:53
↓ 2 callersFunctioncreateTodo
(todo: string)
crates/create-rust-app_cli/template/frontend/src/containers/Todo.tsx:38
↓ 2 callersFunctioncreate_async_queue
Creates a new async queue with the specified max pool size. You should not need to use this function directly. Instead, use `async_queue()` to get a r
crates/create-rust-app/src/tasks/mod.rs:51
↓ 2 callersFunctioncreate_oidc_client
(provider: &OIDCProvider, app_url: String)
crates/create-rust-app/src/auth/oidc/controller.rs:24
↓ 2 callersFunctioncreate_project
TODO: refactor to reduce complexity
crates/create-rust-app_cli/src/main.rs:223
↓ 2 callersFunctioncreate_user_session
TODO: Wrap this in a database transaction create a user session for the user with [`user_id`](`i32`) # Errors - 400: 'device' cannot be longer than 2
crates/create-rust-app/src/auth/controller.rs:292
↓ 2 callersMethoddelete
Delete the entry in [`db`](`Connection`)'s `users` table who's primary key matches [`item_id`](`ID`) # Errors [`diesel::result::Error`](`diesel::resu
crates/create-rust-app/src/auth/user.rs:120
↓ 2 callersMethoddelete
(db: &mut Connection, item_id: ID)
crates/create-rust-app/src/storage/attachment.rs:416
↓ 2 callersFunctionfile_path_to_vec_string
Converts a `/home/user/path/to/file.rs` to `["home", "user", "path", "to", "file"]` Note: this trims the `.rs` extension from the filename (the last e
crates/qsync/src/utils.rs:5
↓ 2 callersFunctionget_migrations
(db: &Database)
crates/create-rust-app/src/dev/controller.rs:60
↓ 2 callersFunctionget_sessions
/sessions queries [`db`](`Database`) for all sessions owned by the User associated with [`auth`](`Auth`) breaks up the results of that query as defi
crates/create-rust-app/src/auth/controller.rs:129
↓ 2 callersMethodhas_permission
(&self, permission: String)
crates/create-rust-app/src/auth/extractors/auth.rs:19
↓ 2 callersMethodhas_role
(&self, role: impl AsRef<str>)
crates/create-rust-app/src/auth/extractors/auth.rs:46
↓ 2 callersFunctionis_primitive_type
(ty: &str)
crates/qsync/src/params.rs:1
↓ 2 callersFunctionparseJwt
(token: string)
crates/create-rust-app_cli/template-plugin-auth/frontend/src/hooks/useAuth.tsx:207
↓ 2 callersFunctionprocess_service_file
( endpoint_prefix: &str, base_input_path: &Path, input_path: PathBuf, state: &mut BuildState,
crates/qsync/src/processor.rs:316
↓ 2 callersFunctionremove_non_framework_files
( project_dir: &PathBuf, framework: BackendFramework, )
crates/create-rust-app_cli/src/content/project.rs:187
↓ 2 callersFunctionsend
(mailer: &Mailer, to_email: &str)
crates/create-rust-app_cli/template/backend/mail/example.rs:4
↓ 2 callersFunctionset_config
(project_dir: &PathBuf, config_item: &str, config_value: &str)
crates/create-rust-app_cli/src/utils/git.rs:15
↓ 2 callersFunctionshell
(command: &str)
crates/create-rust-app_cli/template/build.rs:20
↓ 2 callersMethodtask_type
This will be useful if you want to filter tasks. the default value is `common`
crates/create-rust-app_cli/template-plugin-tasks/backend/tasks/daily_todo.rs:37
↓ 2 callersFunctiontemplate_response
(_uri: &Uri, content: String)
crates/create-rust-app/src/util/poem_utils.rs:139
↓ 2 callersFunctiontemplate_response
(req: &HttpRequest, content: String)
crates/create-rust-app/src/util/actix_web_utils.rs:151
↓ 2 callersFunctiontest_bind
binds a [`TcpListener`] to the given [`addr`](`ToSocketAddrs`)
crates/create-rust-app/src/util/net.rs:7
↓ 2 callersFunctionto_template_name
(request_path: &str)
crates/create-rust-app/src/util/template_utils.rs:34
↓ 2 callersMethodupload
upload an object to the bucket # Arguments `key` - the key of the object to upload `bytes` - the bytes of the object to upload `content_type` - the c
crates/create-rust-app/src/storage/mod.rs:142
↓ 2 callersFunctionvitejs_ping_down
()
crates/create-rust-app/src/dev/mod.rs:29
↓ 2 callersFunctionvitejs_ping_up
()
crates/create-rust-app/src/dev/mod.rs:45
↓ 1 callersFunctionadd_bins_to_cargo_toml
( project_dir: &std::path::PathBuf, creations_options: &CreationOptions, )
crates/create-rust-app_cli/src/content/project.rs:60
↓ 1 callersFunctionadd_dependency_msg
(name: &str)
crates/create-rust-app_cli/src/utils/logger.rs:57
↓ 1 callersMethodafter_install
(&self, install_config: InstallConfig)
crates/create-rust-app_cli/src/plugins/mod.rs:58
↓ 1 callersMethodbefore_install
(&self)
crates/create-rust-app_cli/src/plugins/mod.rs:36
↓ 1 callersFunctionbuildRollupInput
(isDevelopment)
crates/create-rust-app_cli/template/frontend/vite.config.ts:6
↓ 1 callersMethodbuild_args_string
(&self)
crates/qsync/src/hook.rs:56
↓ 1 callersFunctioncheck_cli_version
()
crates/create-rust-app_cli/src/content/project.rs:719
↓ 1 callersFunctioncompile
(project_dir: &'static str, ws_s: Sender<DevServerEvent>)
crates/create-rust-app/src/dev/backend_compiling_server.rs:214
↓ 1 callersFunctionconfig
(resource_name: &str)
crates/create-rust-app_cli/src/content/model.rs:32
↓ 1 callersFunctionconnect
()
crates/create-rust-app_cli/template-plugin-dev/frontend/src/setupDevelopment.tsx:36
↓ 1 callersFunctioncreate
(project_name: &str, creation_options: CreationOptions)
crates/create-rust-app_cli/src/content/project.rs:283
↓ 1 callersFunctioncreateFile
(form: FormData)
crates/create-rust-app_cli/template-plugin-storage/frontend/src/containers/Files.tsx:19
↓ 1 callersFunctioncreate_inject
(bundle_name: &str)
crates/create-rust-app/src/util/template_utils.rs:64
↓ 1 callersFunctioncreate_resource
( backend: BackendFramework, resource_name: &str, include_qsync_attr: bool, )
crates/create-rust-app_cli/src/content/project.rs:699
↓ 1 callersMethoddelete
(db: &mut Connection, param_id: i32)
crates/create-rust-app/src/auth/oidc/model.rs:126
↓ 1 callersMethoddelete
delete an object from the bucket # Arguments `key` - the key of the object to delete # Errors could not delete the object
crates/create-rust-app/src/storage/mod.rs:205
↓ 1 callersFunctiondeleteAllSessions
()
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/AccountPage.tsx:43
↓ 1 callersFunctiondeleteFile
(file: FileInfo)
crates/create-rust-app_cli/template-plugin-storage/frontend/src/containers/Files.tsx:28
↓ 1 callersFunctiondeleteSession
(id: number)
crates/create-rust-app_cli/template-plugin-auth/frontend/src/containers/AccountPage.tsx:23
↓ 1 callersFunctiondeleteTodo
(todo: Todo)
crates/create-rust-app_cli/template/frontend/src/containers/Todo.tsx:57
↓ 1 callersMethoddelete_many
delete many objects from the bucket # Arguments `keys` - a vector of keys to delete # Errors could not delete the objects
crates/create-rust-app/src/storage/mod.rs:226
↓ 1 callersFunctionexit_code
(msg: &str, code: i32)
crates/create-rust-app_cli/src/utils/logger.rs:47
↓ 1 callersFunctionextract_endpoint_information
( endpoint_prefix: &str, base_input_path: &Path, input_path: &Path, attributes: &Vec<syn::Attr
crates/qsync/src/processor.rs:238
↓ 1 callersFunctionextract_path_params_from_hook_endpoint_url
(hook: &mut Hook)
crates/qsync/src/processor.rs:218
↓ 1 callersFunctionfind_free_port
(mut range: Range<u16>)
crates/create-rust-app/src/util/net.rs:24
next →1–100 of 384, ranked by callers