Skip to content

ngcp-project/rust-state-poc

Repository files navigation

Rust State Management Proof of Concept

  • Want to save state for Mission Info JSON
    • Be able to perform CRUD Operations

Installation Instructions

  1. Install Node.JS dependencies with your package manager of choice
npm install
bun install
pnpm install
  1. Run tauri dev
npm run tauri dev
bun run tauri dev
pnpm run tauri dev

Important Note: NEVER build the Rust codebase under the src-tauri directory using the command cargo build. This WILL cause problems!

  1. Database Initialization

Mission Info JSON

{
    "missionName": "Search Area Time",
    "stageName": "Initialize",
    "vehicleKeys": [
        {
            "vehicleName": "ERU",
            "target": {
			    "latitude": 1.0,
			    "longitude": 2.0
		    },
            "searchArea": [
		        {
			        "latitude": 5.0,
			        "longitude": 10.0
		        },
		        {
			        "latitude": 5.0,
			        "longitude": 10.0
		        }
	        ]
        },
        {
            "vehicleName": "FRA",
            "target": {
			    "latitude": 1.5,
			    "longitude": 3.0
		    },
            "searchArea": [
		        {
			        "latitude": 1.0,
			        "longitude": 2.0
		        },
		        {
			        "latitude": 1.0,
			        "longitude": 2.0
		        }
	        ]
        }
    ]
}

Libraries

About

Rust State Management Proof of Concept

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5