Prepare the Pastry: In a large bowl, combine flour and salt. Add the cubed vegan butter and rub into the flour using your fingertips until the mixture resembles coarse breadcrumbs.
Gradually add ice water, stirring until the dough comes together. Wrap in cling film and chill in the refrigerator for at least 30 minutes.
Make the Filling: Heat olive oil in a skillet over medium heat. Add onion and garlic, sautéing until translucent and fragrant.
Add the finely chopped mushrooms, and cook until they release their moisture and begin to brown.
Stir in the chopped walnuts, thyme, and rosemary. Cook for an additional 2-3 minutes. Season with salt and pepper. Set aside to cool slightly. Stir in vegan cream or plant-based milk if using.
Assemble the Tarts: Preheat your oven to 375°F (190°C).
Roll out the chilled dough on a lightly floured surface. Cut into circles that will fit your mini tart pans.
Press each dough circle into a mini tart pan. Trim the edges. Prick the bottom of the dough with a fork.
Spoon the mushroom and walnut mixture into the crusts.
Bake: Bake in the preheated oven for 20-25 minutes, or until the pastry is golden and the filling is heated through.
Serve: Allow to cool slightly before removing from tart pans. Serve warm.