Preheat the oven to 350°F (175 °C) and line an 8"x8" pan with a piece of parchment paper. Note that this crust recipe does not work as a regular pie crust, so don't try using it in a pie pan.
In a large mixing bowl, mix together the sugar, flour, cocoa powder, and salt. Stir in the coconut oil and vanilla with a large spoon until well combined. If you have difficulties incorporating the oil, use your hands. It’ll be dry and crumbly, possibly sticky.
1/2 cup (100 grams) coconut sugar, 1/2 cup (62 grams) flour, 1/2 cup (58 grams) Dutch-process cocoa powder, 1/8 teaspoon salt, 5 1/2 tablespoons (77 grams) refined coconut oil, 1 teaspoon vanilla extract
Press the mixture onto the bottom of the prepared pan. If it's sticky and you're having issues, then wash your hands (assuming they have bits of dough on them), leave them a bit wet and pat the dough down.
Bake for 10 minutes. When you remove it from the oven, it might look crazy. Some parts may be bubbling, some parts may totally greasy and wet. Once it cools, it firms up.
Let cool completely, about 1 hour, and then use a glass to smash the crust to form the cookie crumbs.