From 005b955b8ff214c55501f7f8d3a0db09f0fb8f11 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 20 Oct 2023 17:39:03 +0100 Subject: Store main module on each bin --- examples/01-true/shed.toml | 4 +--- examples/02-hello-world/shed.toml | 4 +--- examples/03-val/shed.toml | 4 +--- examples/04-val-as-namespace-statement/shed.toml | 4 +--- examples/05-string-add/shed.toml | 4 +--- examples/06-if/shed.toml | 4 +--- examples/07-mutual-recursion/shed.toml | 4 +--- examples/08-blocks/shed.toml | 4 +--- examples/09-var/shed.toml | 4 +--- examples/10-while/shed.toml | 4 +--- examples/11-tuples/shed.toml | 4 +--- examples/12-named-args/shed.toml | 4 +--- examples/13-target-ignore/shed.toml | 4 +--- examples/14-structs/shed.toml | 4 +--- examples/15-struct-hoisting/shed.toml | 4 +--- examples/15-sums/shed.toml | 4 +--- 16 files changed, 16 insertions(+), 48 deletions(-) (limited to 'examples') diff --git a/examples/01-true/shed.toml b/examples/01-true/shed.toml index e508461b..a5ab3d51 100644 --- a/examples/01-true/shed.toml +++ b/examples/01-true/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "True" - [[shed.bins]] name = "true" +main-module = "True" [[shed.examples]] bin = "true" diff --git a/examples/02-hello-world/shed.toml b/examples/02-hello-world/shed.toml index 156fa7c6..9e3bb804 100644 --- a/examples/02-hello-world/shed.toml +++ b/examples/02-hello-world/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" diff --git a/examples/03-val/shed.toml b/examples/03-val/shed.toml index 156fa7c6..9e3bb804 100644 --- a/examples/03-val/shed.toml +++ b/examples/03-val/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" diff --git a/examples/04-val-as-namespace-statement/shed.toml b/examples/04-val-as-namespace-statement/shed.toml index 156fa7c6..9e3bb804 100644 --- a/examples/04-val-as-namespace-statement/shed.toml +++ b/examples/04-val-as-namespace-statement/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" diff --git a/examples/05-string-add/shed.toml b/examples/05-string-add/shed.toml index 156fa7c6..9e3bb804 100644 --- a/examples/05-string-add/shed.toml +++ b/examples/05-string-add/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" diff --git a/examples/06-if/shed.toml b/examples/06-if/shed.toml index bbbffff5..2b94bc57 100644 --- a/examples/06-if/shed.toml +++ b/examples/06-if/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "Counting" - [[shed.bins]] name = "counting" +main-module = "Counting" [[shed.examples]] bin = "counting" diff --git a/examples/07-mutual-recursion/shed.toml b/examples/07-mutual-recursion/shed.toml index cb1607ce..3abd2bf8 100644 --- a/examples/07-mutual-recursion/shed.toml +++ b/examples/07-mutual-recursion/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "MutualRecursion" - [[shed.bins]] name = "mutual-recursion" +main-module = "MutualRecursion" [[shed.examples]] bin = "mutual-recursion" diff --git a/examples/08-blocks/shed.toml b/examples/08-blocks/shed.toml index a2d8202b..d6081ebc 100644 --- a/examples/08-blocks/shed.toml +++ b/examples/08-blocks/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "Counting" - [[shed.bins]] name = "counting" +main-module = "Counting" [[shed.examples]] bin = "counting" diff --git a/examples/09-var/shed.toml b/examples/09-var/shed.toml index 156fa7c6..9e3bb804 100644 --- a/examples/09-var/shed.toml +++ b/examples/09-var/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" diff --git a/examples/10-while/shed.toml b/examples/10-while/shed.toml index bbbffff5..2b94bc57 100644 --- a/examples/10-while/shed.toml +++ b/examples/10-while/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "Counting" - [[shed.bins]] name = "counting" +main-module = "Counting" [[shed.examples]] bin = "counting" diff --git a/examples/11-tuples/shed.toml b/examples/11-tuples/shed.toml index 156fa7c6..9e3bb804 100644 --- a/examples/11-tuples/shed.toml +++ b/examples/11-tuples/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" diff --git a/examples/12-named-args/shed.toml b/examples/12-named-args/shed.toml index 156fa7c6..9e3bb804 100644 --- a/examples/12-named-args/shed.toml +++ b/examples/12-named-args/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" diff --git a/examples/13-target-ignore/shed.toml b/examples/13-target-ignore/shed.toml index 156fa7c6..9e3bb804 100644 --- a/examples/13-target-ignore/shed.toml +++ b/examples/13-target-ignore/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" diff --git a/examples/14-structs/shed.toml b/examples/14-structs/shed.toml index 156fa7c6..9e3bb804 100644 --- a/examples/14-structs/shed.toml +++ b/examples/14-structs/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" diff --git a/examples/15-struct-hoisting/shed.toml b/examples/15-struct-hoisting/shed.toml index 156fa7c6..9e3bb804 100644 --- a/examples/15-struct-hoisting/shed.toml +++ b/examples/15-struct-hoisting/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" diff --git a/examples/15-sums/shed.toml b/examples/15-sums/shed.toml index 3a2d316f..7432f9c1 100644 --- a/examples/15-sums/shed.toml +++ b/examples/15-sums/shed.toml @@ -1,8 +1,6 @@ -[shed] -main = "HelloWorld" - [[shed.bins]] name = "hello-world" +main-module = "HelloWorld" [[shed.examples]] bin = "hello-world" -- cgit v1.2.3