Skip to content

Commit 65c7500

Browse files
committed
11.0.3 Fix SQLite compilation error
1 parent 76074ff commit 65c7500

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
package.version = "11.0.2"
2+
package.version = "11.0.3"
33
package.readme = "README.md"
44
package.edition = "2021"
55
package.description = "Set up a modern rust+react web app by running one command."

crates/create-rust-app_cli/src/content/project.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,18 @@ pub fn create(project_name: &str, creation_options: CreationOptions) -> Result<(
510510
);
511511
std::fs::write(env_example_file, contents.clone())?;
512512
std::fs::write(env_file, contents)?;
513+
514+
// update dsync bin
515+
let mut dsync_bin = PathBuf::from(&project_dir);
516+
dsync_bin.push(".cargo");
517+
dsync_bin.push("bin");
518+
dsync_bin.push("dsync.rs");
519+
crate::utils::fs::replace(
520+
dsync_bin.to_str().unwrap(),
521+
"diesel::pg::Pg",
522+
"diesel::sqlite::Sqlite",
523+
)
524+
.unwrap();
513525
}
514526

515527
/*

0 commit comments

Comments
 (0)