MCPcopy Create free account

hub / github.com/Wulf/vite-rs / functions

Functions93 in github.com/Wulf/vite-rs

↓ 12 callersFunctionstart_dev_server
( absolute_root_dir: &str, host: &str, port: u16, #[cfg(feature = "ctrlc")] register_ctrl_c_ha
crates/vite-rs-dev-server/src/lib.rs:91
↓ 11 callersMethodclone
(&self)
crates/vite-rs-axum-0-8/src/vite_serve.rs:25
↓ 8 callersFunctionstop_dev_server
()
crates/vite-rs-dev-server/src/lib.rs:162
↓ 5 callersFunctiontest_project_path
()
crates/vite-rs/tests/recompilation_test.rs:118
↓ 4 callersFunctionfind_attribute_values
Find all pairs of the `name = "value"` attribute from the derive input
crates/vite-rs-embed-macro/src/syn_utils.rs:4
↓ 3 callersFunctionassert_dev_server_running_on_port
(port: u16)
crates/vite-rs/tests/dev_server_port_test.rs:105
↓ 3 callersFunctioncheck_hash
(file: vite_rs::ViteFile)
crates/vite-rs/tests/normal_usage_test.rs:185
↓ 3 callersFunctioncompile_test_project
()
crates/vite-rs/tests/recompilation_test.rs:139
↓ 3 callersFunctionunset_dev_server
()
crates/vite-rs-dev-server/src/lib.rs:42
↓ 2 callersFunctionassert_dev_server_is_not_running
()
crates/vite-rs-axum-0-8/tests/ctrl_c_handling_test.rs:50
↓ 2 callersFunctionassert_dev_server_is_not_running
()
crates/vite-rs/tests/ctrl_c_handling_test.rs:56
↓ 2 callersFunctiondelete_asset_if_exists
(asset: &str)
crates/vite-rs/tests/recompilation_test.rs:109
↓ 2 callersFunctionensure_assets_exist
(assets: Vec<&str>)
crates/vite-rs/tests/recompilation_test.rs:89
↓ 2 callersFunctionget_compiled_binary_modified_time
()
crates/vite-rs/tests/recompilation_test.rs:174
↓ 2 callersFunctionis_port_free
(port: u16)
crates/vite-rs-dev-server/src/util.rs:12
↓ 2 callersFunctiontest_bind
(addr: A)
crates/vite-rs-dev-server/src/util.rs:6
↓ 2 callersMethodwith_cache_strategy
(mut self, cache_strategy: CacheStrategy)
crates/vite-rs-axum-0-8/src/vite_serve.rs:65
↓ 2 callersMethodwith_fallback_strategy
(mut self, strategy: FallbackStrategy)
crates/vite-rs-axum-0-8/src/vite_serve.rs:70
↓ 1 callersFunctionadd_asset
(asset: &str, content: &str)
crates/vite-rs/tests/recompilation_test.rs:102
↓ 1 callersFunctionassert_dev_server_is_running
()
crates/vite-rs-axum-0-8/tests/ctrl_c_handling_test.rs:64
↓ 1 callersFunctionassert_dev_server_is_running
()
crates/vite-rs/tests/ctrl_c_handling_test.rs:70
↓ 1 callersFunctioncreate_output_dir_if_not_exists
( ast: &syn::DeriveInput, output_dir: &PathBuf, )
crates/vite-rs-embed-macro/src/lib.rs:121
↓ 1 callersFunctionderive_absolute_root_dir
The root directory is the project directory where the `Cargo.toml` file is located. It can be overridden by specifying a `#[root = "./"]` attribute un
crates/vite-rs-embed-macro/src/lib.rs:26
↓ 1 callersFunctionderive_crate_path
If crate_path is defined, use that as a syn::Path, otherwise use the crate's name. This is useful when someone is using this crate from a crate path t
crates/vite-rs-embed-macro/src/lib.rs:188
↓ 1 callersFunctionderive_dev_server_port
The dev server port is the port where the vite-rs dev server will run and serve from. By default, it is set to a free port in the range 21012..22022 b
crates/vite-rs-embed-macro/src/lib.rs:139
↓ 1 callersFunctionderive_relative_output_dir
( ast: &syn::DeriveInput, absolute_root_dir: &str, )
crates/vite-rs-embed-macro/src/lib.rs:62
↓ 1 callersFunctionensure_aliases
()
crates/vite-rs/tests/normal_usage_test.rs:58
↓ 1 callersFunctionensure_asset_list
()
crates/vite-rs/tests/normal_usage_test.rs:32
↓ 1 callersFunctionensure_binary_does_not_recompile_on_other_changes
Note: this test is disabled because, currently, ViteJS recomplies assets even if there is no change. Effectively, this results in a full rebuild of th
crates/vite-rs/tests/recompilation_test.rs:65
↓ 1 callersFunctionensure_binary_recompiles_on_asset_change
()
crates/vite-rs/tests/recompilation_test.rs:22
↓ 1 callersFunctionensure_content_hash_is_correct
()
crates/vite-rs/tests/normal_usage_test.rs:173
↓ 1 callersFunctionensure_html_entrypoint
()
crates/vite-rs/tests/normal_usage_test.rs:76
↓ 1 callersFunctionensure_no_dot_vite_dir
()
crates/vite-rs/tests/normal_usage_test.rs:70
↓ 1 callersFunctionensure_no_vite_manifest
()
crates/vite-rs/tests/normal_usage_test.rs:169
↓ 1 callersFunctionensure_public_dir_files
()
crates/vite-rs/tests/normal_usage_test.rs:161
↓ 1 callersFunctionensure_public_script
()
crates/vite-rs/experiments/renaming_bundles_feature/renaming_bundles.rs:22
↓ 1 callersFunctionensure_script_is_renamed_to_bundle
()
crates/vite-rs/experiments/renaming_bundles_feature/renaming_bundles.rs:30
↓ 1 callersFunctionensure_serves_imports
(app: axum::Router)
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:233
↓ 1 callersFunctionensure_serves_index
(app: axum::Router)
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:179
↓ 1 callersFunctionensure_serves_public_files
(app: axum::Router)
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:206
↓ 1 callersFunctionensure_ts_entrypoint
()
crates/vite-rs/tests/normal_usage_test.rs:126
↓ 1 callersFunctionensure_unit_struct
Returns an Err if the DeriveInput is not a unit struct # Example ```ignore #[derive(vite_rs::Embed)] struct MyStruct; ``` Instead of: ```ignore #[
crates/vite-rs-embed-macro/src/syn_utils.rs:48
↓ 1 callersFunctionfind_free_port
(mut range: Range<u16>)
crates/vite-rs-dev-server/src/util.rs:19
↓ 1 callersFunctiongenerate_rust_code
( crate_path: &syn::Path, struct_ident: &syn::Ident, absolute_root_dir: &str,
crates/vite-rs-embed-macro/src/vite/mod.rs:30
↓ 1 callersFunctionget_binary_asset_list
()
crates/vite-rs/tests/recompilation_test.rs:152
↓ 1 callersFunctionimpl_vitejs_embed
(ast: &syn::DeriveInput)
crates/vite-rs-embed-macro/src/lib.rs:209
↓ 1 callersFunctionlist_compiled_files
(absolute_output_path: &str)
crates/vite-rs-embed-macro/src/vite/mod.rs:12
↓ 1 callersFunctionrun
()
crates/vite-rs-axum-0-8/tests/ctrl_c_handling_test.rs:90
↓ 1 callersFunctionrun
(features: &str)
crates/vite-rs/tests/ctrl_c_handling_test.rs:112
↓ 1 callersFunctionsend_term_signal
(child: std::process::Child, signal: nix::sys::signal::Signal)
crates/vite-rs-axum-0-8/tests/ctrl_c_handling_test.rs:41
↓ 1 callersFunctionsend_term_signal
(child: std::process::Child, signal: nix::sys::signal::Signal)
crates/vite-rs/tests/ctrl_c_handling_test.rs:47
↓ 1 callersMethodserve
(&self, req: axum::http::request::Request<B>)
crates/vite-rs-axum-0-8/src/vite_serve.rs:75
↓ 1 callersFunctionset_dev_server
(process: ViteProcess)
crates/vite-rs-dev-server/src/lib.rs:28
↓ 1 callersFunctiontest_cache_response
()
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:64
↓ 1 callersFunctiontest_custom_cache_strategy
()
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:94
↓ 1 callersFunctiontest_default_cache_strategy
()
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:141
↓ 1 callersFunctiontest_fallback_not_found
FallbackStrategy::NotFound returns 404 with an empty body for unknown paths. In dev builds the Vite dev server itself handles every path and returns
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:262
↓ 1 callersFunctiontest_fallback_spa_found
FallbackStrategy::SinglePageApplication serves index.html (200) for unknown paths. Both dev and prod return 200 with HTML content here — in prod Vite
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:286
↓ 1 callersFunctiontest_fallback_spa_missing_fallback_file
FallbackStrategy::SinglePageApplication falls through to 404 when the named fallback file is not in the asset map. In dev builds the Vite dev server
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:318
↓ 1 callersFunctiontest_lazy_cache_strategy
()
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:118
↓ 1 callersFunctiontest_project_path
(test_project_name: &str)
crates/vite-rs-axum-0-8/tests/util/run_project.rs:1
↓ 1 callersFunctiontest_project_path
()
crates/vite-rs/tests/ctrl_c_handling_test.rs:96
↓ 1 callersFunctionunix_ensure_dev_server_exits_on_signal
(signal: nix::sys::signal::Signal)
crates/vite-rs-axum-0-8/tests/ctrl_c_handling_test.rs:28
↓ 1 callersFunctionunix_ensure_dev_server_exits_on_signal
(feature: &str, signal: nix::sys::signal::Signal)
crates/vite-rs/tests/ctrl_c_handling_test.rs:34
FunctionApp
()
crates/vite-rs-axum-0-8/test_projects/ctrl_c_handling_test/app/App.tsx:3
FunctionApp
()
crates/vite-rs-axum-0-8/test_projects/basic_usage_test/app/App.tsx:3
FunctionApp
()
crates/vite-rs-axum-0-8/examples/basic_usage/app/App.tsx:3
Functionapp_with_fallback_service
()
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:54
Functionapp_with_mounted_service
()
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:58
Methodcall
(&mut self, req: Request<B>)
crates/vite-rs-axum-0-8/src/vite_tower_service.rs:25
Functionderive_input_object
(input: TokenStream)
crates/vite-rs-embed-macro/src/lib.rs:242
Methoddrop
(&mut self)
crates/vite-rs-dev-server/src/lib.rs:57
Functionget_content_hash
(content: &[u8])
crates/vite-rs-embed-macro/src/hash_utils.rs:3
Functionmain
()
crates/vite-rs-axum-0-8/test_projects/ctrl_c_handling_test/src/main.rs:16
Functionmain
()
crates/vite-rs-axum-0-8/examples/basic_usage/src/main.rs:9
Functionmain
()
crates/vite-rs/test_projects/custom_output_dir_test/src/main.rs:6
Functionmain
()
crates/vite-rs/test_projects/recompilation_test/src/main.rs:5
Functionmain
()
crates/vite-rs/test_projects/ctrl_c_handling_test/src/main.rs:5
Functionmain
()
crates/vite-rs/examples/basic_usage.rs:7
Functionmain
()
crates/vite-rs/examples/custom_ctrl_c_handler.rs:7
Methodnew
(assets: Box<dyn GetFromVite>)
crates/vite-rs-axum-0-8/src/vite_serve.rs:54
Methodpoll_ready
(&mut self, _cx: &mut Context<'_>)
crates/vite-rs-axum-0-8/src/vite_tower_service.rs:21
Functionrun
( test_project_name: &str, release_build: bool, feature_flags: Vec<&str>, )
crates/vite-rs-axum-0-8/tests/util/run_project.rs:17
Functionstop
(mut child: std::process::Child)
crates/vite-rs-axum-0-8/tests/util/run_project.rs:43
Functionstrip_space
(s: &str)
crates/vite-rs/examples/basic_usage.rs:120
Functionstrip_space
(s: &str)
crates/vite-rs/examples/custom_ctrl_c_handler.rs:71
Functiontest
()
crates/vite-rs-axum-0-8/tests/basic_usage_test.rs:19
Functiontest
()
crates/vite-rs-axum-0-8/tests/ctrl_c_handling_test.rs:6
Functiontest
()
crates/vite-rs/experiments/renaming_bundles_feature/renaming_bundles.rs:6
Functiontest
()
crates/vite-rs/tests/ctrl_c_handling_test.rs:4
Functiontest
()
crates/vite-rs/tests/normal_usage_test.rs:8
Functiontest
()
crates/vite-rs/tests/recompilation_test.rs:7
Functiontest_dev_server_port
()
crates/vite-rs/tests/dev_server_port_test.rs:13