Skip to content

AI-native design editor. Open-source Figma alternative.

Rename Cargo crate to open_pencil, binary to OpenPencil

Danila Poyarkovf7d1d59dc1ee
diff --git a/desktop/Cargo.lock b/desktop/Cargo.lock
index 3d646ecf8..b2646376f 100644
--- a/desktop/Cargo.lock
+++ b/desktop/Cargo.lock
@@ -2356,7 +2356,7 @@ dependencies = [
]
[[package]]
-name = "open-pencil-app"
+name = "open_pencil"
version = "0.1.0"
dependencies = [
"serde",
diff --git a/desktop/Cargo.toml b/desktop/Cargo.toml
index fb7ee4bcd..755d9d085 100644
--- a/desktop/Cargo.toml
+++ b/desktop/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "open-pencil-app"
+name = "open_pencil"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
@@ -7,11 +7,12 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+[[bin]]
+name = "OpenPencil"
+path = "src/main.rs"
+
[lib]
-# The `_lib` suffix may seem redundant but it is necessary
-# to make the lib name unique and wouldn't conflict with the bin name.
-# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
-name = "open_pencil_app_lib"
+name = "open_pencil_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
diff --git a/desktop/src/main.rs b/desktop/src/main.rs
index de6c4500e..c5c39def4 100644
--- a/desktop/src/main.rs
+++ b/desktop/src/main.rs
@@ -2,5 +2,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
- open_pencil_app_lib::run()
+ open_pencil_lib::run()
}