-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
105 lines (94 loc) · 3.14 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[package]
name = "weave-writer"
version = "0.0.3"
edition = "2021"
description = "A tool for collaborative generative writing."
license-file = "LICENSE.md"
repository = "https://github.com/mdegans/weave"
[package.metadata.bundle]
name = "Weave"
identifier = "dev.mdegans.weave"
resources = ["resources"]
copyright = "2024, Michael de Gans"
category = "public.app-category.productivity"
long_description = """
A tool for collaborative generative writing. It supports multiple generative
backends such as OpenAI and LLaMA. Stories can branch, allowing for multiple
paths through a story. It is designed to be used by writers, game developers,
or anyone who needs to generate text.
"""
icon = [
# "resources/icon.32.png",
# "resources/[email protected]",
# "resources/icon.64.png",
# "resources/[email protected]",
"resources/icon.128.png",
"resources/[email protected]",
"resources/icon.256.png",
"resources/[email protected]",
"resources/icon.512.png",
"resources/[email protected]",
# "resources/icon.1024.png",
]
[package.metadata.docs.rs]
features = ["gui"]
# For release, we optimize for size and use lto.
[profile.release]
lto = true
panic = "abort"
strip = true
[dependencies]
egui_commonmark = { version = "0.16", features = ["macros"] }
serde = { version = "1.0", features = ["derive"] }
egui = { version = "0.27", features = ["persistence"], optional = true }
egui_extras = { version = "0.27", features = ["all_loaders"] }
image = { version = "0.24", features = ["png"] }
egui_file = { version = "0.17.0", optional = true }
derive_more = "0.99.17"
serde_json = "1.0"
log = "0.4"
env_logger = "0.11"
static_assertions = "1.1"
thiserror = "1.0"
uuid = { version = "1.8", features = ["v4", "fast-rng"] }
derivative = "2.2.0"
tokio = { version = "1", optional = true }
futures = { version = "0.3", features = ["executor"], optional = true }
keyring = { version = "2", optional = true }
ollama-rs = { version = "0.1.9", optional = true }
openai-rust = { version = "1.5", optional = true }
drama_llama = { version = "0.5", optional = true, features = ["egui"] }
# On Windows + arm64, the wgpu backend does not work -- at least on mac +
# Parallels. The default backend seems to work fine, so we use that instead.
[target.'cfg(all(target_os = "windows", target_arch = "aarch64"))'.dependencies]
eframe = { version = "0.27", features = ["persistence"], optional = true }
# On all other tested platforms, the wgpu backend works fine.
[target.'cfg(not(all(target_os = "windows", target_arch = "aarch64")))'.dependencies]
eframe = { version = "0.27", features = [
"persistence",
"wgpu",
], optional = true }
[features]
default = ["gui", "drama_llama", "openai"]
generate = []
cuda = ["drama_llama/cuda"]
cuda_f16 = ["drama_llama/cuda_f16"]
drama_llama = [
"generate",
"dep:drama_llama",
"drama_llama/serde",
"drama_llama/cli",
"dep:egui_file",
]
openai = [
"generate",
"dep:openai-rust",
"dep:futures",
"dep:keyring",
"dep:tokio",
"tokio/rt-multi-thread",
]
ollama = ["generate", "dep:ollama-rs"]
# TODO: Claude does not yet have a good rust library. Will have to use reqwests
# for the feature.
gui = ["egui", "eframe"]