Rename slint_build::compile_with_output to compile_with_output_path

This commit is contained in:
Olivier Goffart 2024-12-07 08:46:23 +01:00
parent 2564adcf32
commit b30f91ff41
2 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ All notable changes to this project are documented in this file.
### Rust API ### Rust API
- Added `slint_build::compile_with_output` - Added `slint_build::compile_with_output_path`
- Fixed `init=>` callback on PopupWindow ran twice in rust generated code. - Fixed `init=>` callback on PopupWindow ran twice in rust generated code.
- Derive serde traits for `PhysicalPosition`, `LogicalPosition`, `PhysicalSize` and `LogicalSize` (#6534) - Derive serde traits for `PhysicalPosition`, `LogicalPosition`, `PhysicalSize` and `LogicalSize` (#6534)
- Use `approx_eq` to compare float in the generated code - Use `approx_eq` to compare float in the generated code

View file

@ -397,7 +397,7 @@ pub fn compile_with_config(
); );
let paths_dependencies = let paths_dependencies =
compile_with_output(path, absolute_rust_output_file_path.clone(), config)?; compile_with_output_path(path, absolute_rust_output_file_path.clone(), config)?;
for path_dependency in paths_dependencies { for path_dependency in paths_dependencies {
println!("cargo:rerun-if-changed={}", path_dependency.display()); println!("cargo:rerun-if-changed={}", path_dependency.display());
@ -427,7 +427,7 @@ pub fn compile_with_config(
/// Doesn't print any cargo messages. /// Doesn't print any cargo messages.
/// ///
/// Returns a list of all input files that were used to generate the output file. (dependencies) /// Returns a list of all input files that were used to generate the output file. (dependencies)
pub fn compile_with_output( pub fn compile_with_output_path(
input_slint_file_path: impl AsRef<std::path::Path>, input_slint_file_path: impl AsRef<std::path::Path>,
output_rust_file_path: impl AsRef<std::path::Path>, output_rust_file_path: impl AsRef<std::path::Path>,
config: CompilerConfiguration, config: CompilerConfiguration,