Compare commits

...

2 Commits

Author SHA1 Message Date
Julian Freeman
813229aae9 fix 2025-12-01 07:28:26 -04:00
Julian Freeman
7541190a43 little modification 2025-12-01 07:24:35 -04:00
6 changed files with 24 additions and 30 deletions

View File

@@ -1,5 +1,5 @@
{ {
"name": "rest-client", "name": "lite-request",
"private": true, "private": true,
"version": "0.1.0", "version": "0.1.0",
"type": "module", "type": "module",

26
src-tauri/Cargo.lock generated
View File

@@ -1956,6 +1956,19 @@ version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
[[package]]
name = "lite-request"
version = "0.1.0"
dependencies = [
"reqwest",
"serde",
"serde_json",
"tauri",
"tauri-build",
"tauri-plugin-opener",
"tokio",
]
[[package]] [[package]]
name = "litemap" name = "litemap"
version = "0.8.1" version = "0.8.1"
@@ -3129,19 +3142,6 @@ dependencies = [
"web-sys", "web-sys",
] ]
[[package]]
name = "rest-client"
version = "0.1.0"
dependencies = [
"reqwest",
"serde",
"serde_json",
"tauri",
"tauri-build",
"tauri-plugin-opener",
"tokio",
]
[[package]] [[package]]
name = "ring" name = "ring"
version = "0.17.14" version = "0.17.14"

View File

@@ -1,7 +1,7 @@
[package] [package]
name = "rest-client" name = "lite-request"
version = "0.1.0" version = "0.1.0"
description = "A Tauri App" description = "A Simple REST API Client"
authors = ["you"] authors = ["you"]
edition = "2021" edition = "2021"
@@ -11,7 +11,7 @@ edition = "2021"
# The `_lib` suffix may seem redundant but it is necessary # The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name. # 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 # This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "rest_client_lib" name = "lite_request_lib"
crate-type = ["staticlib", "cdylib", "rlib"] crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies] [build-dependencies]

View File

@@ -10,12 +10,6 @@ struct HttpResponse {
time_elapsed: u128, // milliseconds time_elapsed: u128, // milliseconds
} }
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}! You've been greeted from Rust!", name)
}
#[tauri::command] #[tauri::command]
async fn execute_request( async fn execute_request(
method: String, method: String,
@@ -79,7 +73,7 @@ async fn execute_request(
pub fn run() { pub fn run() {
tauri::Builder::default() tauri::Builder::default()
.plugin(tauri_plugin_opener::init()) .plugin(tauri_plugin_opener::init())
.invoke_handler(tauri::generate_handler![greet, execute_request]) .invoke_handler(tauri::generate_handler![execute_request])
.run(tauri::generate_context!()) .run(tauri::generate_context!())
.expect("error while running tauri application"); .expect("error while running tauri application");
} }

View File

@@ -2,5 +2,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() { fn main() {
rest_client_lib::run() lite_request_lib::run()
} }

View File

@@ -1,8 +1,8 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "rest-client", "productName": "LiteRequest",
"version": "0.1.0", "version": "0.1.0",
"identifier": "top.volan.rest-client", "identifier": "top.volan.lite-request",
"build": { "build": {
"beforeDevCommand": "pnpm dev", "beforeDevCommand": "pnpm dev",
"devUrl": "http://localhost:1420", "devUrl": "http://localhost:1420",
@@ -12,9 +12,9 @@
"app": { "app": {
"windows": [ "windows": [
{ {
"title": "rest-client", "title": "LiteRequest",
"width": 800, "width": 1200,
"height": 600 "height": 800
} }
], ],
"security": { "security": {