Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jun 25, 2024
1 parent 24765c5 commit 28597c4
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 33 deletions.
62 changes: 35 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zoo-kcl"
version = "0.1.15"
version = "0.1.16"
edition = "2021"
repository = "https://github.com/kittycad/kcl.py"

Expand All @@ -11,9 +11,9 @@ crate-type = ["cdylib"]

[dependencies]
anyhow = "1.0.86"
kcl-lib = {version = "0.1.60", features = ["pyo3"]}
kcl-lib = {version = "0.1.67", features = ["pyo3"]}
kittycad = "0.3.6"
pyo3 = { version = "0.21.1", features = ["serde", "experimental-async"] }
pyo3 = { version = "0.22.0", features = ["serde", "experimental-async"] }
reqwest = "0.11.0"
serde = "1.0.203"
serde_json = "1.0.118"
Expand Down
9 changes: 6 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ use kcl_lib::{
lint::{checks, Discovered},
settings::types::UnitLength,
};
use pyo3::{pyclass, pyfunction, pymethods, pymodule, types::PyModule, wrap_pyfunction, Bound, PyErr, PyResult};
use pyo3::{
prelude::PyModuleMethods, pyclass, pyfunction, pymethods, pymodule, types::PyModule, wrap_pyfunction, Bound, PyErr,
PyResult,
};
use serde::{Deserialize, Serialize};

fn tokio() -> &'static tokio::runtime::Runtime {
Expand All @@ -15,7 +18,7 @@ fn tokio() -> &'static tokio::runtime::Runtime {

/// The variety of image formats snapshots may be exported to.
#[derive(Serialize, Deserialize, PartialEq, Hash, Debug, Clone, Copy)]
#[pyclass]
#[pyclass(eq, eq_int)]
#[serde(rename_all = "lowercase")]
pub enum ImageFormat {
/// .png format
Expand Down Expand Up @@ -76,7 +79,7 @@ impl ExportFile {

/// The valid types of output file formats.
#[derive(Serialize, Deserialize, PartialEq, Hash, Debug, Clone)]
#[pyclass]
#[pyclass(eq, eq_int)]
#[serde(rename_all = "lowercase")]
pub enum FileExportFormat {
/// Autodesk Filmbox (FBX) format. <https://en.wikipedia.org/wiki/FBX>
Expand Down

0 comments on commit 28597c4

Please sign in to comment.