mirror of
https://codeberg.org/insects/cargo-spiel
synced 2025-05-23 10:33:42 +00:00
fix: properly include public/
in published crate
This commit is contained in:
parent
dc85a393cf
commit
a7907c8a37
4 changed files with 6 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -156,7 +156,7 @@ checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cargo-spiel"
|
name = "cargo-spiel"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"clap",
|
"clap",
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "cargo-spiel"
|
name = "cargo-spiel"
|
||||||
description = "Run a playground connected to a Cargo project locally"
|
description = "Run a playground connected to a Cargo project locally"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
exclude = ["/frontend"]
|
||||||
|
include = ["/public", "/src"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
axum = { version = "0.8.4", features = ["macros"] }
|
axum = { version = "0.8.4", features = ["macros"] }
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "vite build --watch",
|
"watch": "vite build --watch",
|
||||||
"build": "vite build",
|
"build": "vite build --emptyOutDir",
|
||||||
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json"
|
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -17,7 +17,7 @@ use axum::{
|
||||||
use include_dir::{Dir, include_dir};
|
use include_dir::{Dir, include_dir};
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
|
|
||||||
static PUBLIC_DIR: Dir<'_> = include_dir!("$PWD/public");
|
static PUBLIC_DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/public");
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
struct OutputResponse {
|
struct OutputResponse {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue