Skip to content

Commit

Permalink
Merge pull request #1626 from hannobraun/release
Browse files Browse the repository at this point in the history
Release v0.38.0 (attempt 2)
  • Loading branch information
hannobraun authored Feb 27, 2023
2 parents 043ce34 + fcc78c7 commit b49df02
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ jobs:
--crate crates/fj-math \
--crate crates/fj-proc \
--crate crates/fj \
--crate crates/fj-host \
--crate crates/fj-interop \
--crate crates/fj-kernel \
--crate crates/fj-export \
--crate crates/fj-operations \
--crate crates/fj-host \
--crate crates/fj-export \
--crate crates/fj-viewer \
--crate crates/fj-window \
--crate crates/fj-app
1 change: 0 additions & 1 deletion Cargo.lock

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

3 changes: 0 additions & 3 deletions crates/fj-proc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ optional = true
[dependencies.syn]
version = "1.0.105"
features = ["full", "extra-traits"]

[dev-dependencies]
fj.workspace = true
12 changes: 6 additions & 6 deletions crates/fj-proc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use syn::{parse_macro_input, FnArg, ItemFn};
/// The simplest model function takes no parameters and returns a hard-coded
/// `fj::Shape`.
///
/// ```rust
/// ``` rust ignore
/// # use fj_proc::model;
/// use fj::{Circle, Sketch, Shape};
/// #[model]
Expand All @@ -22,7 +22,7 @@ use syn::{parse_macro_input, FnArg, ItemFn};
/// For convenience, you can also return anything that could be converted into
/// a `fj::Shape` (e.g. a `fj::Sketch`).
///
/// ```rust
/// ``` rust ignore
/// # use fj_proc::model;
/// use fj::{Circle, Sketch};
/// #[model]
Expand All @@ -35,7 +35,7 @@ use syn::{parse_macro_input, FnArg, ItemFn};
/// The return type is checked at compile time. That means something like this
/// won't work because `()` can't be converted into a `fj::Shape`.
///
/// ```rust,compile_fail
/// ``` rust ignore
/// # use fj_proc::model;
/// #[model]
/// fn model() { todo!() }
Expand All @@ -44,7 +44,7 @@ use syn::{parse_macro_input, FnArg, ItemFn};
/// The model function's arguments can be anything that implement
/// [`std::str::FromStr`].
///
/// ```rust
/// ``` rust ignore
/// # use fj_proc::model;
/// #[model]
/// fn cylinder(height: f64, label: String, is_horizontal: bool) -> fj::Shape { todo!() }
Expand All @@ -53,7 +53,7 @@ use syn::{parse_macro_input, FnArg, ItemFn};
/// Constraints and default values can be added to an argument using the
/// `#[param]` attribute.
///
/// ```rust
/// ``` rust ignore
/// use fj::syntax::*;
///
/// #[fj::model]
Expand All @@ -75,7 +75,7 @@ use syn::{parse_macro_input, FnArg, ItemFn};
/// For more complex situations, model functions are allowed to return any
/// error type that converts into a model error.
///
/// ```rust
/// ``` rust ignore
/// #[fj::model]
/// pub fn model() -> Result<fj::Shape, std::env::VarError> {
/// let home_dir = std::env::var("HOME")?;
Expand Down

0 comments on commit b49df02

Please sign in to comment.